From de1d1d38a2bed45bc4a33f44ce29358f67d2c44b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 28 Mar 2020 17:01:44 -0400 Subject: [PATCH] only turn off Power LED if CW ID is enabled --- afsk/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index ce376b8e..da39651e 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -611,8 +611,8 @@ while (loop-- != 0) transmit = popen("sudo killall -9 sendiq > /dev/null 2>&1", "r"); transmit = popen("sudo fuser -k 8080/tcp > /dev/null 2>&1", "r"); - // if(vB4) - digitalWrite (onLed, onLedOff); + if(cw_id == ON) // only turn off Power LED if CW ID is enabled (i.e. not demo.sh mode cycling) + digitalWrite (onLed, onLedOff); return 0; }