Ensure module are on after model change

This commit is contained in:
3djc
2021-02-01 08:49:21 +01:00
parent c084a4a3c1
commit 2aeb5f7ae6
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -484,6 +484,10 @@ bool setupPulsesInternalModule()
{
uint8_t protocol = getRequiredProtocol(INTERNAL_MODULE);
if(protocol != PROTOCOL_CHANNELS_NONE) {
INTERNAL_MODULE_ON();
}
heartbeat |= (HEART_TIMER_PULSES << INTERNAL_MODULE);
if (moduleState[INTERNAL_MODULE].protocol != protocol) {
@@ -502,6 +506,10 @@ bool setupPulsesExternalModule()
{
uint8_t protocol = getRequiredProtocol(EXTERNAL_MODULE);
if(protocol != PROTOCOL_CHANNELS_NONE) {
EXTERNAL_MODULE_ON();
}
heartbeat |= (HEART_TIMER_PULSES << EXTERNAL_MODULE);
if (moduleState[EXTERNAL_MODULE].protocol != protocol) {
+2
View File
@@ -353,7 +353,9 @@ inline void startPulses()
setupPulsesInternalModule();
#endif
#if defined(HARDWARE_EXTERNAL_MODULE)
setupPulsesExternalModule();
#endif
#if defined(HARDWARE_EXTRA_MODULE)
extramodulePpmStart();