(&mut self)
| 359 | } |
| 360 | |
| 361 | fn set_region_config(&mut self) -> Result<()> { |
| 362 | trace!("Setting region_config"); |
| 363 | let d = self.device.as_mut().unwrap(); |
| 364 | let ds = d.get_device_session_mut()?; |
| 365 | ds.region_config_id |
| 366 | .clone_from(&self.uplink_frame_set.region_config_id); |
| 367 | |
| 368 | let region_conf = |
| 369 | region::get(&ds.region_config_id).context("Get region config for region_config_id")?; |
| 370 | |
| 371 | self.region_conf = Some(region_conf); |
| 372 | |
| 373 | Ok(()) |
| 374 | } |
| 375 | |
| 376 | fn check_roaming_allowed(&self) -> Result<(), Error> { |
| 377 | trace!("Check if roaming is allowed for this device"); |
no test coverage detected