X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/71a448efcc3c8f53d523c291f12b0f08f3e2f372..4e2358c2ade1278f4835bc263e7df1dd8e74e8c9:/m17core/src/decode.rs 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,