WiP: module de-init
This commit is contained in:
@@ -462,6 +462,7 @@ void enablePulsesExternalModule(uint8_t protocol)
|
|||||||
externalModuleDriver->deinit(externalModuleContext);
|
externalModuleDriver->deinit(externalModuleContext);
|
||||||
externalModuleDriver = nullptr;
|
externalModuleDriver = nullptr;
|
||||||
externalModuleContext = nullptr;
|
externalModuleContext = nullptr;
|
||||||
|
EXTERNAL_MODULE_PWR_OFF();
|
||||||
} else {
|
} else {
|
||||||
extmoduleStop();
|
extmoduleStop();
|
||||||
}
|
}
|
||||||
@@ -740,6 +741,7 @@ void stopPulsesExternalModule()
|
|||||||
mixerSchedulerSetPeriod(EXTERNAL_MODULE, 0);
|
mixerSchedulerSetPeriod(EXTERNAL_MODULE, 0);
|
||||||
extmoduleStop();
|
extmoduleStop();
|
||||||
}
|
}
|
||||||
|
EXTERNAL_MODULE_PWR_OFF();
|
||||||
moduleState[EXTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
|
moduleState[EXTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -750,7 +750,7 @@ static void pxx2DeInitExternal(void* context)
|
|||||||
(void)context;
|
(void)context;
|
||||||
|
|
||||||
mixerSchedulerSetPeriod(EXTERNAL_MODULE, 0);
|
mixerSchedulerSetPeriod(EXTERNAL_MODULE, 0);
|
||||||
extmoduleStop();
|
ExtmoduleSerialDriver.deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pxx2SetupPulsesExternal(void* context, int16_t* channels, uint8_t nChannels)
|
static void pxx2SetupPulsesExternal(void* context, int16_t* channels, uint8_t nChannels)
|
||||||
|
|||||||
Reference in New Issue
Block a user