forked from Archive/PX4-Autopilot
fix protocol_splitter: increment i properly in scan_for_packets
This also guarantees that i is increased in every loop iteration. Before it was possible to enter a busy loop.
This commit is contained in:
parent
cf3db0d313
commit
8b2016b4ed
|
@ -548,7 +548,7 @@ void DevCommon::scan_for_packets()
|
|||
|
||||
perf_set_count(header_bytes_received_count, _read_buffer->header_bytes_received);
|
||||
|
||||
i += payload_len;
|
||||
i += Sp2HeaderSize + payload_len;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue