From 5ba4f92261e2bfd435ffe1ea1f753c902c3f60a2 Mon Sep 17 00:00:00 2001 From: John Janus Date: Sun, 17 Sep 2017 11:04:04 +0200 Subject: [PATCH] be sure to deactivate intro led --- simple_try.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.47.0