From 0259e44c313be325def83231e8a6358113126c4d Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Thu, 24 Sep 2020 17:34:38 -0400 Subject: [PATCH] cli: ignore DJ pairing notifications in CLI pair command --- lib/solaar/cli/pair.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/cli/pair.py b/lib/solaar/cli/pair.py index 77010c90..c3c9bcb4 100644 --- a/lib/solaar/cli/pair.py +++ b/lib/solaar/cli/pair.py @@ -55,7 +55,7 @@ def run(receivers, args, find_receiver, _ignore): assert n if n.devnumber == 0xFF: _notifications.process(receiver, n) - elif n.sub_id == 0x41: # allow for other protocols! (was and n.address == 0x04) + elif n.sub_id == 0x41 and len(n.data) == _base._SHORT_MESSAGE_SIZE - 4: kd, known_devices = known_devices, None # only process one connection notification if kd is not None: if n.devnumber not in kd: