From: John Janus Date: Sun, 17 Sep 2017 09:18:39 +0000 (+0200) Subject: do not restart playing intro if a channel is pressed X-Git-Url: https://git.johnzone.org/?a=commitdiff_plain;h=b51314fe8b5886a3efd7daf010a979cfa266d834;p=FakeRadio.git do not restart playing intro if a channel is pressed --- diff --git a/simple_try.c b/simple_try.c index bac2ecc..64c0bcd 100644 --- a/simple_try.c +++ b/simple_try.c @@ -48,7 +48,7 @@ void pwrBtn(void) { } void chnl1Btn(void) { - if (delaying) return; + if (delaying || !pwrOn) return; pthread_mutex_lock(mut); chnl1 = true; pthread_mutex_unlock(mut); @@ -56,7 +56,7 @@ void chnl1Btn(void) { } void chnl2Btn(void) { - if (delaying) return; + if (delaying || !pwrOn) return; pthread_mutex_lock(mut); chnl1 = false; pthread_mutex_unlock(mut);