This commit is contained in:
3djc
2021-02-03 10:42:04 +01:00
parent 2aeb5f7ae6
commit f1e957e466
3 changed files with 20 additions and 12 deletions
+12 -8
View File
@@ -480,14 +480,16 @@ bool setupPulsesInternalModule(uint8_t protocol)
}
}
void stopPulsesInternalModule()
{
intmoduleStop();
moduleState[INTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
}
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,14 +504,16 @@ bool setupPulsesInternalModule()
}
#endif
void stopPulsesExternalModule()
{
extmoduleStop();
moduleState[EXTERNAL_MODULE].protocol = PROTOCOL_CHANNELS_NONE;
}
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) {