1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 21:35:27 +03:00

Taranis internal module fix

This commit is contained in:
Bertrand Songis 2019-02-08 11:54:23 +01:00
parent 8c9ba8d1e5
commit aef7a1074f
6 changed files with 10 additions and 109 deletions

View file

@ -75,7 +75,7 @@ bool isForcePowerOffRequested()
bool isProtocolSynchronous(uint8_t protocol)
{
return (protocol == PROTOCOL_CHANNELS_PXX2 || protocol == PROTOCOL_CHANNELS_NONE);
return (protocol == PROTOCOL_CHANNELS_PXX2 || protocol == PROTOCOL_CHANNELS_CROSSFIRE || protocol == PROTOCOL_CHANNELS_NONE);
}
void sendSynchronousPulses()
@ -83,7 +83,12 @@ void sendSynchronousPulses()
for (uint8_t module = 0; module < NUM_MODULES; module++) {
uint8_t protocol = moduleSettings[module].protocol;
if (isProtocolSynchronous(protocol) && setupPulses(module)) {
intmoduleSendNextFrame();
if (module == INTERNAL_MODULE) {
intmoduleSendNextFrame();
}
else {
// TODO
}
}
}
}