X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/7a14bb4738cf011d9f99dc86abaee7042407b27d..0de0222c8409705d19d9c9df8652bc6a9293ef55:/m17core/src/reflector/convert.rs diff --git a/m17core/src/reflector/convert.rs b/m17core/src/reflector/convert.rs index fd52df8..716e68a 100644 --- a/m17core/src/reflector/convert.rs +++ b/m17core/src/reflector/convert.rs @@ -70,7 +70,9 @@ pub struct RfToVoice { impl RfToVoice { pub fn new(lsf: LsfFrame) -> Self { - Self { lsf, stream_id: 0 } + // no_std "random" + let stream_id = &lsf as *const LsfFrame as u16; + Self { lsf, stream_id } } pub fn process_lsf(&mut self, lsf: LsfFrame) {