From: John Janus Date: Sun, 17 Sep 2017 09:04:04 +0000 (+0200) Subject: be sure to deactivate intro led X-Git-Url: https://git.johnzone.org/?a=commitdiff_plain;h=5ba4f92261e2bfd435ffe1ea1f753c902c3f60a2;p=FakeRadio.git be sure to deactivate intro led --- diff --git a/simple_try.c b/simple_try.c index 691e3c3..ddc8f77 100644 --- a/simple_try.c +++ b/simple_try.c @@ -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);