Ensure module are on after model change
This commit is contained in:
@@ -484,6 +484,10 @@ bool setupPulsesInternalModule()
|
|||||||
{
|
{
|
||||||
uint8_t protocol = getRequiredProtocol(INTERNAL_MODULE);
|
uint8_t protocol = getRequiredProtocol(INTERNAL_MODULE);
|
||||||
|
|
||||||
|
if(protocol != PROTOCOL_CHANNELS_NONE) {
|
||||||
|
INTERNAL_MODULE_ON();
|
||||||
|
}
|
||||||
|
|
||||||
heartbeat |= (HEART_TIMER_PULSES << INTERNAL_MODULE);
|
heartbeat |= (HEART_TIMER_PULSES << INTERNAL_MODULE);
|
||||||
|
|
||||||
if (moduleState[INTERNAL_MODULE].protocol != protocol) {
|
if (moduleState[INTERNAL_MODULE].protocol != protocol) {
|
||||||
@@ -502,6 +506,10 @@ bool setupPulsesExternalModule()
|
|||||||
{
|
{
|
||||||
uint8_t protocol = getRequiredProtocol(EXTERNAL_MODULE);
|
uint8_t protocol = getRequiredProtocol(EXTERNAL_MODULE);
|
||||||
|
|
||||||
|
if(protocol != PROTOCOL_CHANNELS_NONE) {
|
||||||
|
EXTERNAL_MODULE_ON();
|
||||||
|
}
|
||||||
|
|
||||||
heartbeat |= (HEART_TIMER_PULSES << EXTERNAL_MODULE);
|
heartbeat |= (HEART_TIMER_PULSES << EXTERNAL_MODULE);
|
||||||
|
|
||||||
if (moduleState[EXTERNAL_MODULE].protocol != protocol) {
|
if (moduleState[EXTERNAL_MODULE].protocol != protocol) {
|
||||||
|
|||||||
@@ -353,7 +353,9 @@ inline void startPulses()
|
|||||||
setupPulsesInternalModule();
|
setupPulsesInternalModule();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HARDWARE_EXTERNAL_MODULE)
|
||||||
setupPulsesExternalModule();
|
setupPulsesExternalModule();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HARDWARE_EXTRA_MODULE)
|
#if defined(HARDWARE_EXTRA_MODULE)
|
||||||
extramodulePpmStart();
|
extramodulePpmStart();
|
||||||
|
|||||||
Reference in New Issue
Block a user