mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 03:37:40 +00:00
Prioritize PacketBuilder found_end_flag() over packet_truncated().
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user