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
28 changed files with 190 additions and 120 deletions
+3 -2
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();
}