From b51314fe8b5886a3efd7daf010a979cfa266d834 Mon Sep 17 00:00:00 2001 From: John Janus Date: Sun, 17 Sep 2017 11:18:39 +0200 Subject: [PATCH] do not restart playing intro if a channel is pressed --- simple_try.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.1