mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Corrected timout calculation formula.
This commit is contained in:
parent
bb87e6390e
commit
938ed58918
@ -102,7 +102,7 @@ static void PIOS_RFM22B_RCVR_Supervisor(uint32_t rcvr_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// RTC runs at 625Hz.
|
// RTC runs at 625Hz.
|
||||||
if (++(rfm22b_dev->ppm_supv_timer) < (PIOS_RFM22B_RCVR_TIMEOUT_MS * 1000 / 625)) {
|
if (++(rfm22b_dev->ppm_supv_timer) < (PIOS_RFM22B_RCVR_TIMEOUT_MS * 625 / 1000)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rfm22b_dev->ppm_supv_timer = 0;
|
rfm22b_dev->ppm_supv_timer = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user