]> code.octet-stream.net Git - m17rt/blobdiff - m17core/src/encode.rs
Start handling KISS frames in SoftTnc
[m17rt] / m17core / src / encode.rs
index 8f1d1da48a7b0ddcea63a13d5fab9209a3ee2dc7..4fc742939d71c42a38d053a5109deda4da69c7ca 100644 (file)
@@ -35,7 +35,7 @@ pub(crate) fn encode_packet(frame: &PacketFrame) -> [f32; 192] {
         }
         PacketFrameCounter::FinalFrame { payload_len } => {
             type1[0..payload_len].copy_from_slice(&frame.payload[0..payload_len]);
-            type1[25] = (payload_len as u8) << 3 | 0x04;
+            type1[25] = ((payload_len as u8) << 3) | 0x04;
         }
     }
     let type3 = fec::encode(&type1, 206, p_3);