mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-20 22:57:34 +01: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.