Repository navigation
Unifying receivers no longer retry discovery forever while a paired device is offline - #1506
Conversation
Register 0x02 on a Unifying receiver reports every paired device, including offline ones. Reading it as a connected count meant receiver discovery could never complete while a paired device was offline, so it retried for as long as the app ran. Lightspeed receivers keep the connected-count interpretation. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Related to #1504, where the retry loop first showed up in a log. It is not the cause of the memory growth reported there.
When a Unifying receiver had a paired device that was offline, LinearMouse never finished discovering the receiver. It logged
Receiver inventory is incomplete, retryingand queried every paired slot again, backing off to about once every 18 seconds for as long as the app ran.Register 0x02 on a Unifying receiver reports the number of paired devices, including offline ones. The code treated it as the number of connected devices, so the check could not pass while any paired device was offline. Two receivers showed this: one with a single pairing and nothing online reported 1, and the one in #1504 with four pairings and one device online reported 4.
Interpret the count as a paired-device count for Unifying receivers, which puts them on the same completeness check Bolt already uses: every paired slot must have a known online or offline state. Lightspeed receivers keep the connected-count interpretation.
Validation (macOS 27.2, Unifying receiver 0xC52B with an ERGO M575 as its only pairing):
swiftformat --lintandswiftlintpassed.🤖 Generated with Claude Code