mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
rfm22b receiver supervisor now properly indicates a timeout condition.
This allows upper layers to recognize control signal loss.
This commit is contained in:
parent
8fa79377c3
commit
b48665e59b
@ -110,7 +110,7 @@ static void PIOS_RFM22B_RCVR_Supervisor(uint32_t rcvr_id) {
|
|||||||
// Have we received fresh values since the last update?
|
// Have we received fresh values since the last update?
|
||||||
if (!rfm22b_dev->ppm_fresh) {
|
if (!rfm22b_dev->ppm_fresh) {
|
||||||
for (uint8_t i = 0; i < PIOS_RFM22B_RCVR_MAX_CHANNELS; ++i) {
|
for (uint8_t i = 0; i < PIOS_RFM22B_RCVR_MAX_CHANNELS; ++i) {
|
||||||
rfm22b_dev->ppm_channel[i] = 0;
|
rfm22b_dev->ppm_channel[i] = PIOS_RCVR_TIMEOUT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rfm22b_dev->ppm_fresh = false;
|
rfm22b_dev->ppm_fresh = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user