From 7b7bbe773de4a0d365b195590af94073b09cd953 Mon Sep 17 00:00:00 2001
From: Jan Grewe <jan@faked.org>
Date: Fri, 3 May 2019 01:21:46 +0200
Subject: [PATCH] don't start short blinking when already stopped

---
 OpenWatchWinder.ino | 7 +++++--
 README.md           | 4 ++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/OpenWatchWinder.ino b/OpenWatchWinder.ino
index 3156acb..655799d 100644
--- a/OpenWatchWinder.ino
+++ b/OpenWatchWinder.ino
@@ -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;
diff --git a/README.md b/README.md
index 2542bae..c56d30d 100644
--- a/README.md
+++ b/README.md
@@ -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
 
-- 
GitLab