receiver: ignore DJ pairing notifications
This commit is contained in:
parent
c1b6bf92c7
commit
5dbf691403
|
@ -203,7 +203,12 @@ class ReceiverListener(_listener.EventsListener):
|
|||
if n.sub_id == 0x40 and not already_known:
|
||||
return # disconnecting something that is not known - nothing to do
|
||||
|
||||
if n.sub_id == 0x41:
|
||||
if n.sub_id == 0x41 and len(n.data) > _base._SHORT_MESSAGE_SIZE - 4:
|
||||
# DJ pairing notification - ignore - hid++ 1.0 pairing notification is all that is needed
|
||||
if _log.isEnabledFor(_INFO):
|
||||
_log.info('ignoring DJ pairing notification', n)
|
||||
return
|
||||
elif n.sub_id == 0x41:
|
||||
if not already_known:
|
||||
dev = self.receiver.register_new_device(n.devnumber, n)
|
||||
elif self.receiver.status.lock_open and self.receiver.re_pairs and not ord(n.data[0:1]) & 0x40:
|
||||
|
|
Loading…
Reference in New Issue