AP_EFI: MS: avoid requesting data too often

Similar to 4585c9fdc1
This commit is contained in:
Peter Barker 2023-03-15 11:02:44 +11:00 committed by Peter Barker
parent bddf0ae5a2
commit fb1b2e870e
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void AP_EFI_Serial_MS::update()
copy_to_frontend();
}
if (port->available() == 0 || now - last_response_ms > 200) {
if (now - last_response_ms > 200) {
port->discard_input();
// Request an update from the realtime table (7).
// The data we need start at offset 6 and ends at 129