(&mut self)
| 1468 | } |
| 1469 | |
| 1470 | async fn _set_ping_slot_parameters(&mut self) -> Result<()> { |
| 1471 | trace!("Setting ping-slot parameters"); |
| 1472 | |
| 1473 | let ds = self.device.get_device_session_mut()?; |
| 1474 | |
| 1475 | if !self.device_profile.supports_class_b { |
| 1476 | return Ok(()); |
| 1477 | } |
| 1478 | |
| 1479 | if ds.class_b_ping_slot_dr as u8 != self.network_conf.class_b.ping_slot_dr |
| 1480 | || ds.class_b_ping_slot_freq != self.network_conf.class_b.ping_slot_frequency |
| 1481 | { |
| 1482 | let set = maccommand::ping_slot_channel::request( |
| 1483 | self.network_conf.class_b.ping_slot_dr, |
| 1484 | self.network_conf.class_b.ping_slot_frequency, |
| 1485 | ); |
| 1486 | self.mac_commands.push(set); |
| 1487 | } |
| 1488 | |
| 1489 | Ok(()) |
| 1490 | } |
| 1491 | |
| 1492 | async fn _set_rx_parameters(&mut self) -> Result<()> { |
| 1493 | trace!("Setting rx parameters"); |
no test coverage detected