Never leave MPM mode set to SPECTRUM_ANALYSER

This commit is contained in:
Peter Feerick
2021-09-17 10:44:24 +02:00
committed by Raphael Coeffic
parent a5a54b6ce7
commit 5cb1278cb3
@@ -270,11 +270,9 @@ void RadioSpectrumAnalyser::stop()
&reusableBuffer.moduleSetup.pxx2.moduleInformation, PXX2_HW_INFO_TX_ID,
PXX2_HW_INFO_TX_ID);
} else if (isModuleMultimodule(moduleIdx)) {
if (reusableBuffer.spectrumAnalyser.moduleOFF) {
moduleState[moduleIdx].mode = MODULE_MODE_NORMAL;
if (reusableBuffer.spectrumAnalyser.moduleOFF)
setModuleType(INTERNAL_MODULE, MODULE_TYPE_NONE);
} else {
moduleState[moduleIdx].mode = MODULE_MODE_NORMAL;
}
}
/* wait 1s to resume normal operation before leaving */
// watchdogSuspend(1000);