From 0c31b0a4323f20caa48ad793ac63b5fc23d843ec Mon Sep 17 00:00:00 2001 From: NickBM3 <155599448+NickBM3@users.noreply.github.com> Date: Wed, 3 Jan 2024 19:03:15 -0800 Subject: [PATCH] Update leds.h Updated to add a check to the control for Green LEDs, if Finish Indication feature is turned off now Green LEDs will be ignored after print finishes and White LEDs will remain on. --- src/leds.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leds.h b/src/leds.h index 62c6d89..c2dea51 100644 --- a/src/leds.h +++ b/src/leds.h @@ -216,7 +216,7 @@ void updateleds(){ //GREEN - if ((millis() - printerVariables.finishstartms) <= 300000 && printerVariables.gcodeState == "FINISH"){ + if ((millis() - printerVariables.finishstartms) <= 300000 && printerVariables.gcodeState == "FINISH" && printerConfig.finishindication == true){ tweenToColor(0,255,0,0,0,500); //ON if (printerConfig.debuging){ Serial.println(F("Finished print, Turning Leds green")); @@ -271,4 +271,4 @@ void ledsloop(){ } } -#endif \ No newline at end of file +#endif