mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 05:15:18 +03:00
Pulses refactoring (another one!) (#6510)
Pulses refactoring (another one!)
This commit is contained in:
parent
1f1ccf277c
commit
b20e4a6be4
18 changed files with 183 additions and 494 deletions
|
@ -87,15 +87,16 @@ bool isModuleSynchronous(uint8_t module)
|
|||
|
||||
void sendSynchronousPulses()
|
||||
{
|
||||
for (uint8_t module = 0; module < NUM_MODULES; module++) {
|
||||
if (isModuleSynchronous(module) && setupPulses(module)) {
|
||||
#if defined(HARDWARE_INTERNAL_MODULE)
|
||||
if (module == INTERNAL_MODULE)
|
||||
intmoduleSendNextFrame();
|
||||
if (isModuleSynchronous(INTERNAL_MODULE)) {
|
||||
if (setupPulsesInternalModule())
|
||||
intmoduleSendNextFrame();
|
||||
}
|
||||
#endif
|
||||
if (module == EXTERNAL_MODULE)
|
||||
extmoduleSendNextFrame();
|
||||
}
|
||||
|
||||
if (isModuleSynchronous(EXTERNAL_MODULE)) {
|
||||
if (setupPulsesExternalModule())
|
||||
extmoduleSendNextFrame();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue