Skip to content
Snippets Groups Projects
Commit 7b7bbe77 authored by Jan Grewe's avatar Jan Grewe
Browse files

don't start short blinking when already stopped

parent 110ff0b2
No related branches found
No related tags found
No related merge requests found
......@@ -243,10 +243,13 @@ void handleSwEvent(AceButton *button, uint8_t eventType, uint8_t buttonState)
case W_RIGHT:
case W_PAUSE:
Serial.println(">> LongPress: Stop Winding");
pwr_led.Reset();
pwr_led.Blink(100, 500).Forever();
Stop = true;
Continue = false;
if (WState != W_PAUSE)
{
pwr_led.Reset();
pwr_led.Blink(100, 500).Forever();
}
break;
default:
break;
......
......@@ -27,8 +27,8 @@ configured amount of minutes (`PAUSE_MIN`), and eventually restart the cycles. T
## LED Status
* **Solid**: Standby / Manually Stopped
* **Slow Blinking** (1s on, 0.2s off): Winding
* **Fast Blinking** (0.1 on, 0.5s off): Stopping, returning to home position (when manually stopped)
* **Long Blinking** (1s on, 0.2s off): Winding
* **Short Blinking** (0.1 on, 0.5s off): Stopping, returning to home position (when manually stopped)
* **Slow Breathing**: Paused, waiting for next cycles
* **Fast Breathing**: Paused, the next cycle will start in <1 minute
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment