From b39f5fcac2b0e48a9565a1260f8844b57fdb4542 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 28 Mar 2012 19:24:17 +0000 Subject: [PATCH] Beeps on THR and SWITCH alerts --- src/open9x.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 4fd2c202f..ad0710031 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -741,19 +741,12 @@ void checkSwitches() { if(!g_eeGeneral.switchWarning) return; // if warning is on - // first - display warning - message(STR_ALERT, STR_SWITCHESNOTOFF, STR_RESETTHROTTLE, STR_PLEASERESETTHEM); - bool state = (g_eeGeneral.switchWarning > 0); + bool first = true; //loop until all switches are reset while (1) { -#ifdef SIMU - if (!main_thread_running) return; - sleep(1/*ms*/); -#endif - uint8_t i; for(i=SW_BASE; i