From 95334e2d6f327385106a20cb9cb430db3db22bd4 Mon Sep 17 00:00:00 2001 From: oroshi_ Date: Sun, 3 Mar 2024 18:06:22 +0100 Subject: [PATCH] Added Blue Color for Pause Added Resume functionality --- src/leds.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/leds.h b/src/leds.h index 20336cd..c935d45 100644 --- a/src/leds.h +++ b/src/leds.h @@ -219,9 +219,19 @@ void updateleds(){ return; } + //BLUE + + if (printerVariables.stage == 2 && printerVariables.gcodeState == "PAUSE"){// Pause + tweenToColor(0,0,255,0,0,500); //Blue + if (printerConfig.debuging){ + Serial.println(F("Pause, Turning Leds blue")); + }; + return; + } + //ON - if (printerVariables.stage == 0){ //Printing + if (printerVariables.stage == 0 || printerVariables.stage == 2 && printerVariables.gcodeState == "RUNNING"){ //Printing or Resume after Pausing tweenToColor(0,0,0,255,255,500); //ON if (printerConfig.debuging){ Serial.println(F("Printing, Turning Leds On"));