mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_EFI: prevent flood of Lutan serial port
send request at max 5Hz
This commit is contained in:
parent
7d5162181f
commit
5b7a6a7f6a
@ -88,7 +88,7 @@ void AP_EFI_Serial_Lutan::update()
|
|||||||
pkt_nbytes = 0;
|
pkt_nbytes = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (n == 0 || now - last_request_ms > 200) {
|
if (now - last_request_ms > 200) {
|
||||||
last_request_ms = now;
|
last_request_ms = now;
|
||||||
port->discard_input();
|
port->discard_input();
|
||||||
send_request();
|
send_request();
|
||||||
|
Loading…
Reference in New Issue
Block a user