1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00

Bsongis/xlite pxx (#5856)

Pulses refactoring
This commit is contained in:
Bertrand Songis 2018-04-29 22:55:29 +02:00 committed by GitHub
parent 6ec64b227c
commit cfc02f67eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 209 additions and 217 deletions

View file

@ -192,11 +192,11 @@ void mixerTask(void * pdata)
}
}
void scheduleNextMixerCalculation(uint8_t module, uint16_t delay)
void scheduleNextMixerCalculation(uint8_t module, uint16_t period_ms)
{
// Schedule next mixer calculation time,
// for now assume mixer calculation takes 2 ms.
nextMixerTime[module] = (uint32_t)CoGetOSTime() + (delay)/2 - 1/*2ms*/;
nextMixerTime[module] = (uint32_t)CoGetOSTime() + period_ms / 2 - 1/*2ms*/;
DEBUG_TIMER_STOP(debugTimerMixerCalcToUsage);
}