mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 11:01:35 +08:00
mavlink: early return in parser
Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -3597,7 +3597,7 @@ void MavlinkReceiver::parse_for_ok(int nread, const char *buf)
|
||||
switch (_parse_state) {
|
||||
case OkParseState::None:
|
||||
// Nothing to do.
|
||||
break;
|
||||
return;
|
||||
|
||||
case OkParseState::Waiting:
|
||||
if (buf[i] == 'O') {
|
||||
|
||||
Reference in New Issue
Block a user