File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -264,27 +264,27 @@ impl<'c> Radio<'c> {
264
264
}
265
265
}
266
266
267
- /// Listens for a packet for no longer than the specified amount of milliseconds
267
+ /// Listens for a packet for no longer than the specified amount of microseconds
268
268
///
269
269
/// If no packet is received within the specified time then the `Timeout` error is returned
270
270
///
271
271
/// If a packet is received within the time span then the packet CRC is checked. If the CRC is
272
272
/// incorrect then the `Crc` error is returned; otherwise the `Ok` variant is returned.
273
273
///
274
274
/// Note that the time it takes to switch the radio to RX mode is included in the timeout count.
275
- /// This transition may take up to a hundred of milliseconds ; see the section 6.20.15.8 in the
275
+ /// This transition may take up to a hundred of microseconds ; see the section 6.20.15.8 in the
276
276
/// Product Specification for more details about timing
277
277
pub fn recv_timeout < I > (
278
278
& mut self ,
279
279
packet : & mut Packet ,
280
280
timer : & mut Timer < I > ,
281
- millis : u32 ,
281
+ microseconds : u32 ,
282
282
) -> Result < u16 , Error >
283
283
where
284
284
I : timer:: Instance ,
285
285
{
286
286
// Start the timeout timer
287
- timer. start ( millis ) ;
287
+ timer. start ( microseconds ) ;
288
288
289
289
// Start the read
290
290
self . start_recv ( packet) ;
You can’t perform that action at this time.
0 commit comments