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:
Beat Küng 2022-02-02 13:42:51 +01:00 committed by Daniel Agar
parent cf3db0d313
commit 8b2016b4ed
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}