Browse Source

base-station: Reply to GetSalt requests.

Mathias Gottschlag 5 years ago
parent
commit
367cbe1267
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      base-station/software/src/radio.rs

+ 2
- 2
base-station/software/src/radio.rs View File

232
     }
232
     }
233
 
233
 
234
     fn send_packet(&mut self, device_id: u8, packet: Packet) -> Result<(), Error> {
234
     fn send_packet(&mut self, device_id: u8, packet: Packet) -> Result<(), Error> {
235
-        /*let salt = self.rng.gen::<u64>();
235
+        let salt = self.rng.gen::<u64>();
236
         let mut tx = self
236
         let mut tx = self
237
             .rx
237
             .rx
238
             .take()
238
             .take()
257
                 .map_err(Error::Radio)?
257
                 .map_err(Error::Radio)?
258
                 .rx()
258
                 .rx()
259
                 .map_err(|(_, e)| Error::Radio(e))?,
259
                 .map_err(|(_, e)| Error::Radio(e))?,
260
-        );*/
260
+        );
261
         Ok(())
261
         Ok(())
262
     }
262
     }
263
 }
263
 }

Loading…
Cancel
Save