]> Johnzone git - FakeRadio.git/commitdiff
be sure to deactivate intro led
authorJohn Janus <mail@johnzone.org>
Sun, 17 Sep 2017 09:04:04 +0000 (11:04 +0200)
committerJohn Janus <mail@johnzone.org>
Sun, 17 Sep 2017 09:04:04 +0000 (11:04 +0200)
simple_try.c

index 691e3c3e8f1392f55e82e8b47ccb71844eeba99f..ddc8f77b64b1fdc5e990afb110dbcc4bdfe7d679 100644 (file)
@@ -114,9 +114,15 @@ int main(void) {
             digitalWrite(CHNL1LED, HIGH);
             digitalWrite(CHNL2LED, HIGH);
             chnl1=true;
-            if (intro) playThread = startPlayThread("intro.mp3");
+            if (intro) {
+                playThread = startPlayThread("intro.mp3");
+                digitalWrite(INTROLED, LOW);
+            } else {
+                digitalWrite(INTROLED, HIGH);
+            }
         } else {
             digitalWrite(PWRLED, LOW);
+            digitalWrite(INTROLED, HIGH);
             if (chnl1) {
                 digitalWrite(CHNL1LED, LOW);
                 digitalWrite(CHNL2LED, HIGH);