]> code.octet-stream.net Git - m17rt/blobdiff - m17core/src/decode.rs
Finish implementation of SoftModulator, hopefully
[m17rt] / m17core / src / decode.rs
index 7ec222495806ac03830bf5e2b4a7c43ab7f2aa30..9fd83cdba625f9ead891b0c5a5ceb72783521ce5 100755 (executable)
@@ -141,8 +141,8 @@ pub(crate) fn parse_packet(frame: &[f32] /* length 192 */) -> Option<PacketFrame
         Some(packet) => 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,