Set mixer scheduler period to 0 in stopPulsesXxxxModule()

This commit is contained in:
Raphael Coeffic
2021-05-19 22:22:14 +02:00
committed by Raphael Coeffic
parent 1452d9548e
commit 343073cfed
+2
View File
@@ -580,6 +580,7 @@ bool setupPulsesInternalModule(uint8_t protocol)
void stopPulsesInternalModule()
{
if (moduleState[INTERNAL_MODULE].protocol != PROTOCOL_CHANNELS_UNINITIALIZED) {
mixerSchedulerSetPeriod(INTERNAL_MODULE, 0);
intmoduleStop();
moduleState[INTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
}
@@ -607,6 +608,7 @@ bool setupPulsesInternalModule()
void stopPulsesExternalModule()
{
if (moduleState[EXTERNAL_MODULE].protocol != PROTOCOL_CHANNELS_UNINITIALIZED) {
mixerSchedulerSetPeriod(EXTERNAL_MODULE, 0);
extmoduleStop();
moduleState[EXTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
}