Turn module off to resume normal operation

This commit is contained in:
3djc
2019-02-26 14:14:36 +01:00
parent a7311810d3
commit 55c9c280f7
+5
View File
@@ -25,7 +25,12 @@ void menuRadioSpectrum(event_t event)
SIMPLE_MENU("SPECTRUM ANALYSER", menuTabGeneral, MENU_RADIO_SPECTRUM, 1); SIMPLE_MENU("SPECTRUM ANALYSER", menuTabGeneral, MENU_RADIO_SPECTRUM, 1);
if (menuEvent) { if (menuEvent) {
INTERNAL_MODULE_OFF();
moduleSettings[INTERNAL_MODULE].mode = MODULE_MODE_NORMAL; moduleSettings[INTERNAL_MODULE].mode = MODULE_MODE_NORMAL;
/* wait 500ms off */
watchdogSuspend(500);
RTOS_WAIT_MS(500);
INTERNAL_MODULE_ON();
} }
else if (event == EVT_ENTRY) { else if (event == EVT_ENTRY) {
memclear(reusableBuffer.spectrum.bars, sizeof(reusableBuffer.spectrum.bars)); memclear(reusableBuffer.spectrum.bars, sizeof(reusableBuffer.spectrum.bars));