1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +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()
{
#if defined(INTERNAL_MODULE)
#if defined(HARDWARE_INTERNAL_MODULE)
if (mixerSchedules[INTERNAL_MODULE].period) {
return mixerSchedules[INTERNAL_MODULE].period;
}
#endif
#if defined(EXTERNAL_MODULE)
#if 1 //defined(HARDWARE_EXTERNAL_MODULE)
if (mixerSchedules[EXTERNAL_MODULE].period) {
return mixerSchedules[EXTERNAL_MODULE].period;
}

View file

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