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:
parent
8c9ba8d1e5
commit
aef7a1074f
6 changed files with 10 additions and 109 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue