]> code.octet-stream.net Git - m17rt/blobdiff - m17core/src/reflector/convert.rs
Make netclient work against mrefd
[m17rt] / m17core / src / reflector / convert.rs
index fd52df87377908b2b3101f230c607c4c56346dbe..716e68ac3beb2fdfafe8887f55a12e710895d8e3 100644 (file)
@@ -70,7 +70,9 @@ pub struct RfToVoice {
 
 impl RfToVoice {
     pub fn new(lsf: LsfFrame) -> Self {
 
 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) {
     }
 
     pub fn process_lsf(&mut self, lsf: LsfFrame) {