Skip to content

Commit

Permalink
Also reset the country code when receiving DeviceResetCmd.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobwzy committed Dec 11, 2023
1 parent 6842b4a commit 78a233d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ impl Device {
let status = match reset_config {
ResetConfig::UwbsReset => StatusCode::UciStatusOk,
};
let country_code = self.country_code;
*self = Device::new(self.handle, self.tx.clone(), self.pica_tx.clone());
self.init();
self.country_code = country_code;

DeviceResetRspBuilder { status }.build()
}
Expand Down

0 comments on commit 78a233d

Please sign in to comment.