enable notification on recevier as soon as possible

This commit is contained in:
Daniel Pavel 2013-06-19 19:46:54 +02:00
parent a806f2672d
commit 11cfc7ea09
2 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ class ReceiverStatus(dict):
self.lock_open = False
self.new_device = None
self[NOTIFICATIONS] = _hidpp10.get_notification_flags(receiver)
self[KEYS.ERROR] = None
self[KEYS.NOTIFICATION_FLAGS] = receiver.enable_notifications()
def __str__(self):
count = len(self._receiver)

View File

@ -56,7 +56,7 @@ class ReceiverListener(_listener.EventsListener):
def has_started(self):
_log.info("%s: notifications listener has started (%s)", self.receiver, self.receiver.handle)
self.receiver.enable_notifications()
# self.receiver.enable_notifications()
self.receiver.notify_devices()
self._status_changed(self.receiver) #, _status.ALERT.NOTIFICATION)