AP_EFI: prevent flood of Lutan serial port

send request at max 5Hz
This commit is contained in:
Andrew Tridgell 2022-07-17 12:56:38 +10:00 committed by Randy Mackay
parent 7d5162181f
commit 5b7a6a7f6a

View File

@ -88,7 +88,7 @@ void AP_EFI_Serial_Lutan::update()
pkt_nbytes = 0;
}
}
if (n == 0 || now - last_request_ms > 200) {
if (now - last_request_ms > 200) {
last_request_ms = now;
port->discard_input();
send_request();