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:
Peter Hutterer 2018-02-09 15:35:04 +10:00 committed by Benjamin Tissoires
parent c2bba6bd43
commit ae41b23c10
1 changed files with 2 additions and 2 deletions

View File

@ -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):