We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 295f817 commit d91a54cCopy full SHA for d91a54c
src/bluez/adapter.rs
@@ -143,11 +143,10 @@ async fn central_event(
143
Some(CentralEvent::DeviceDiscovered(device.id.into()))
144
}
145
DeviceEvent::Connected { connected } => {
146
- let device = session.get_device_info(&id).await.ok()?;
147
if connected {
148
- Some(CentralEvent::DeviceConnected(device.id.into()))
+ Some(CentralEvent::DeviceConnected(id.into()))
149
} else {
150
- Some(CentralEvent::DeviceDisconnected(device.id.into()))
+ Some(CentralEvent::DeviceDisconnected(id.into()))
151
152
153
DeviceEvent::Rssi { rssi: _ } => {
0 commit comments