ble: don't make property updates exclusive
A single event may be sent for multiple properties, we need to check all of them.
This commit is contained in:
parent
c2bba6bd43
commit
ae41b23c10
|
@ -245,10 +245,10 @@ class BlueZDevice(GObject.Object):
|
||||||
else:
|
else:
|
||||||
logger.info('Disconnected')
|
logger.info('Disconnected')
|
||||||
self.emit('disconnected')
|
self.emit('disconnected')
|
||||||
elif 'ServicesResolved' in properties:
|
if 'ServicesResolved' in properties:
|
||||||
if properties['ServicesResolved']:
|
if properties['ServicesResolved']:
|
||||||
self.emit('connected')
|
self.emit('connected')
|
||||||
elif 'RSSI' in properties:
|
if 'RSSI' in properties:
|
||||||
self.emit('updated')
|
self.emit('updated')
|
||||||
|
|
||||||
def connect_gatt_value(self, uuid, callback):
|
def connect_gatt_value(self, uuid, callback):
|
||||||
|
|
Loading…
Reference in New Issue