cleaned up some mut
This commit is contained in:
@ -43,14 +43,14 @@ impl BleServer {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn run(&mut self) -> Result<()> {
|
||||
pub async fn run(&self) -> Result<()> {
|
||||
match self.do_run().await {
|
||||
Ok(_) => {error!("Exited bluetooth server wait loop with no error.");panic!();}
|
||||
Err(e) => {error!("Bluetooth task encountered error {}", e);panic!();}
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn do_run(&mut self) -> Result<()> {
|
||||
pub async fn do_run(&self) -> Result<()> {
|
||||
trace!("Entering BLE Run");
|
||||
let ble_device = BLEDevice::take();
|
||||
set_device_security(ble_device);
|
||||
|
||||
Reference in New Issue
Block a user