mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-02 18:46:58 -04:00
Prioritize PacketBuilder found_end_flag() over packet_truncated().
This commit is contained in:
parent
c2e7f9a6f4
commit
4ed385d15e
1 changed files with 7 additions and 2 deletions
|
@ -62,10 +62,15 @@ public:
|
|||
payload[bits_received++] = symbol;
|
||||
}
|
||||
|
||||
if( found_end_flag() || packet_truncated() ) {
|
||||
payload_handler(payload, bits_received);
|
||||
if( found_end_flag() ) {
|
||||
payload_handler(payload, bits_received - 7);
|
||||
reset_state();
|
||||
} else {
|
||||
if( packet_truncated() ) {
|
||||
reset_state();
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue