Repository navigation
Conversation
With the headset gone the Charging Dock blinks its status ring white for about five minutes, and only brightness is reachable. A ring at 0 stays dark through that blinking, but leaving it at 0 loses the ring while the headset is in use. So a switch, off by default, turns the ring down as the headset goes and puts it back when it returns. The write goes through the dock as the headset is found gone, the last moment there is anything to write through; whether the dock takes it then is still to be tried on the headset. The brightness is kept in the settings file before the write and let go only once put back, so a quit or crash while the headset is away still restores it, and a kept value is never replaced by the 0. A ring found at anything but 0 on return is left as it is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Stephen · project thread
Adds a Dark while disconnected switch (off by default) under the Charging Dock's lights. When the headset goes quiet on the dock, Neap keeps the status ring's brightness (
0x401) in the settings file and writes 0 through the dock; when the headset answers on the dock again with the ring still at 0, the kept brightness is written back.DockRingDim.ToKeep/ToRestore, with tests.Untried on hardware: the dim write is sent after the headset has stopped answering, since that is the first moment Neap knows it is gone. Whether the dock acts on a write then is unknown. The restore half uses the ordinary connected write path.
Generated by Claude Code