From f43ad0a23958209d5e217e91707066a5697e6f71 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 6 Oct 2020 01:26:36 +0200 Subject: [PATCH] HF_YOUNG: turn leds off when quitting mode --- armsrc/Standalone/hf_young.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/armsrc/Standalone/hf_young.c b/armsrc/Standalone/hf_young.c index c33d0cf5c..1673b8975 100644 --- a/armsrc/Standalone/hf_young.c +++ b/armsrc/Standalone/hf_young.c @@ -54,7 +54,7 @@ void RunMod(void) { for (;;) { WDT_HIT(); // exit from Standalone Mode, send a usbcommand. - if (data_available()) return; + if (data_available()) break; SpinDelay(300); @@ -72,7 +72,7 @@ void RunMod(void) { for (;;) { // exit from Standalone Mode, send a usbcommand. - if (data_available()) return; + if (data_available()) break; if (BUTTON_PRESS()) { if (cardRead[selected]) { @@ -223,7 +223,7 @@ void RunMod(void) { DbpString("Playing"); for (; ;) { // exit from Standalone Mode, send a usbcommand. - if (data_available()) return; + if (data_available()) break; int button_pressed = BUTTON_HELD(1000); if (button_pressed == BUTTON_NO_CLICK) { // No button action, proceed with sim @@ -280,4 +280,6 @@ void RunMod(void) { LED(selected + 1, 0); } } + DbpString(_YELLOW_("[=]") "exiting"); + LEDsoff(); }