X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/71a448efcc3c8f53d523c291f12b0f08f3e2f372..5fe056d1599b4feff228ae0a398e427b2487dc9a:/m17core/src/decode.rs?ds=sidebyside diff --git a/m17core/src/decode.rs b/m17core/src/decode.rs index 7ec2224..9fd83cd 100755 --- a/m17core/src/decode.rs +++ b/m17core/src/decode.rs @@ -141,8 +141,8 @@ pub(crate) fn parse_packet(frame: &[f32] /* length 192 */) -> Option packet, None => return None, }; - let final_frame = (packet[25] & 0x80) > 0; - let number = (packet[25] >> 2) & 0x01f; + let final_frame = (packet[25] & 0x04) > 0; + let number = packet[25] >> 3; let counter = if final_frame { PacketFrameCounter::FinalFrame { payload_len: number as usize,