X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/cd3124ca701db72364554f91fdb6a119faa876ec..9058451e46e4d36264282abe381aa9b6fd2c773f:/m17core/src/encode.rs?ds=sidebyside diff --git a/m17core/src/encode.rs b/m17core/src/encode.rs index 8f1d1da..4fc7429 100644 --- a/m17core/src/encode.rs +++ b/m17core/src/encode.rs @@ -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);