AP_RCProtocol: return true on initial protocol detection

we need to tell the IO firmware that a byte was consumed when we first
detect a protocol as otherwise the next bad byte on DSM will lock us
on the DSM port
This commit is contained in:
Andrew Tridgell 2023-05-21 18:45:43 +10:00 committed by Randy Mackay
parent 71cbcb49f5
commit c868ac5fe4
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ bool AP_RCProtocol::process_byte(uint8_t byte, uint32_t baudrate)
}
// stop decoding pulses to save CPU
hal.rcin->pulse_input_enable(false);
break;
return true;
}
}
}