1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 05:15:18 +03:00

Bsongis/rssi from 2 different modules (#6711)

RSSI from 2 different modules
This commit is contained in:
Bertrand Songis 2019-09-05 17:24:48 +02:00 committed by GitHub
parent a2e71d43c0
commit 13dee00eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 190 additions and 120 deletions

View file

@ -136,7 +136,7 @@ TASK_FUNCTION(mixerTask)
uint32_t now = RTOS_GET_MS();
bool run = false;
if ((now - lastRunTime) >= 10) {
if (now - lastRunTime >= 10) {
// run at least every 10ms
run = true;
}
@ -194,7 +194,8 @@ TASK_FUNCTION(mixerTask)
}
t0 = getTmr2MHz() - t0;
if (t0 > maxMixerDuration) maxMixerDuration = t0;
if (t0 > maxMixerDuration)
maxMixerDuration = t0;
sendSynchronousPulses();
}