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

allow one-click restart when stopping while paused

parent 3cc7938b
Branches
No related tags found
No related merge requests found
......@@ -234,6 +234,7 @@ void handleSwEvent(AceButton *button, uint8_t eventType,
{
case W_LEFT:
case W_RIGHT:
case W_PAUSE:
Serial.println(">>Stop Winding<<");
StopWind = true;
Continue = false;
......@@ -248,6 +249,7 @@ void handleSwEvent(AceButton *button, uint8_t eventType,
Serial.println("SW CLICK");
pwr_led.Reset();
Continue = true;
StopWind = false;
switch (WState)
{
case W_IDLE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment