mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-27 23:40:31 +02:00
6282597790
It occurred to me that onServicesDiscovered() was called multiple times whenever I connected to my Mi Band 2. Either the band actually sent the characteristics in multiple chunks or Android itself notified multiple times. So we gracefully handle this by - updating the list of characteristics - *not* initializing the device again when it *is* already initialized or at least initializing. |
||
---|---|---|
.. | ||
btle | ||
devices | ||
receivers | ||
serial | ||
AbstractDeviceSupport.java | ||
DeviceCommunicationService.java | ||
DeviceSupport.java | ||
DeviceSupportFactory.java | ||
ServiceDeviceSupport.java |