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

Fix synced

This commit is contained in:
3djc 2021-01-08 17:53:38 +01:00
parent 65dd3a91c2
commit 31c20fc8eb
2 changed files with 3 additions and 10 deletions

View file

@ -37,12 +37,12 @@ static MixerSchedule mixerSchedules[NUM_MODULES];
uint16_t getMixerSchedulerPeriod() uint16_t getMixerSchedulerPeriod()
{ {
#if defined(INTERNAL_MODULE) #if defined(HARDWARE_INTERNAL_MODULE)
if (mixerSchedules[INTERNAL_MODULE].period) { if (mixerSchedules[INTERNAL_MODULE].period) {
return mixerSchedules[INTERNAL_MODULE].period; return mixerSchedules[INTERNAL_MODULE].period;
} }
#endif #endif
#if defined(EXTERNAL_MODULE) #if 1 //defined(HARDWARE_EXTERNAL_MODULE)
if (mixerSchedules[EXTERNAL_MODULE].period) { if (mixerSchedules[EXTERNAL_MODULE].period) {
return mixerSchedules[EXTERNAL_MODULE].period; return mixerSchedules[EXTERNAL_MODULE].period;
} }

View file

@ -174,14 +174,7 @@ TASK_FUNCTION(mixerTask)
doMixerCalculations(); doMixerCalculations();
// TODO: fix runMask // TODO: fix runMask
uint8_t runMask = 0; sendSynchronousPulses((1 << INTERNAL_MODULE) | (1 << EXTERNAL_MODULE));
#if defined(INTERNAL_MODULE)
runMask != (1 << INTERNAL_MODULE)
#endif
#if defined(EXTERNAL_MODULE)
runMask != (1 << EXTERNAL_MODULE)
#endif
sendSynchronousPulses(runMask);
doMixerPeriodicUpdates(); doMixerPeriodicUpdates();