From 6d3ee6202a92be384cfdf7a435943026c2a60426 Mon Sep 17 00:00:00 2001 From: Martin Ness Date: Mon, 28 Sep 2015 22:37:19 +0200 Subject: [PATCH] =?UTF-8?q?FIX=20zustands=C3=BCberf=C3=BChrung=20vergessen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- status/status.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/status/status.ino b/status/status.ino index 041eb58..0c902eb 100644 --- a/status/status.ino +++ b/status/status.ino @@ -105,6 +105,12 @@ boolean transition() { digitalWrite(LED_R, HIGH); return true; } + if (state_previous == STATE_HALF && state_current == STATE_ON) { + digitalWrite(LED_Y, LOW); + digitalWrite(LED_G, HIGH); + stateBegan = millis(); + return true; + } if (state_previous == NULL && state_current == STATE_OFF) { digitalWrite(LED_G, LOW); digitalWrite(LED_Y, LOW);