Repository navigation
Conversation
Confidence Score: 5/5
[Medium impact] The latest changes appear safe to merge; no new actionable issue was established.
|
Rufim
force-pushed
the
feat/g700-support
branch
from
November 30, 2026 09:05
02c5875 to
b82ab08
Compare
Author
|
review please |
The action picker stopped its raw mouse buttons at 8, although the flash writes any button up to the report's 16 and the mouse's own profiles press past 8 (a G700 default presses button 11). A user could read such a binding back but not create one. REPORT_BUTTONS_MAX now owns the count; the validator, the mask decoder, the agent-button range and the picker all read it, and an ast-grep rule fails on another literal 1..=16 range. Writing a button the picker offers still leaves the agent its routing numbers: the planner routes slots around the buttons a profile presses natively.
…atively With the picker offering every report button, a profile can press a button natively that another profile's agent-run slot still owns. The hook kept routing it to that other slot and ran its action over the press. hook_routes now drops another profile's route for any button the played profile presses; that profile's next write moves its slot off the button, which the planner then finds reserved.
Master now keys every OS-hook press by its source device and cancels a press whose attribution is lost (AprilNEA#1442). The flash-button path still used the unkeyed press API, so it no longer compiled. The flash path now presses, releases and starts its runtime press with the device, and the cancellation of invalidated sources runs before any early return: the event that reports a lost G700 may itself be unattributed, and an agent button is no button the generic path handles.
Rufim
force-pushed
the
feat/g700-support
branch
from
December 3, 2026 12:30
e94e478 to
f7f803d
Compare
The preset chips of a G700 are its played profile's DPI modes as last read. A DPI the mouse took is saved to one of those modes by a flash write the agent debounces, yet nothing read the profiles again, and a preset added or removed meanwhile sent the old list whole, writing the old mode back over the save. A DpiModes edit answered by the agent had the same gap. FlashEdits now waits after a DPI save or a DpiModes edit for a reading that shows it: the write seen and then idle, or two idle readings, the second begun after the answer. The profiles are polled while it waits, the agent leaving restarts the wait, and the preset chips offer no add or remove until it ends; the edit path already refuses an edit while one is busy.
This branch has not been deployed
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.
Summary
Adds support for the Logitech G700 (HID++ 1.0, Nano receiver
c531or on its cable). It shows up in the inventory, its DPI, report rate and battery work, and its buttons and five onboard profiles are configured in the mouse's own flash memory. Actions the firmware can't run itself fall back to the agent.Changes
c531, wireless1023, wiredc06b) as the single owner of "is this address a G700", with an ast-grep guard.0x0F,0x63,0x64,0x07).config.toml.read_flash_profiles/edit_flash_profilesand the new wire types (appended; goldens updated).openlogi diag g700 dump | restore | set-dpi | set-rate | set-resolution | set-profile(documented indocs/USAGE.md).Testing
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspaceRUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items --exclude openlogi-ui --exclude openlogi-desktop --exclude openlogi-overlay --exclude openlogi-agentcargo xtask ci ast-grep typos "publish closure" i18n wire_format "wasm (portable crates)": passclippy (windows)(no mingw cross compiler on this host),cargo-deny(not installed; the diff adds no new crates), the macOS and Windows test jobs.Hardware (Linux, G700 on its Nano receiver next to an MX Master 3S on Bolt):
openlogi listand the GUI show the G700 with its battery;diag g700 dump --outproduced a backup with valid CRCs; renaming three profiles and switching the active one through the agent wrote flash that a fresh dump read back with valid CRCs. DPI and report-rate flash writes are covered by the simulator tests only. The G6–G11 physical positions in the layout are not cross-checked against the hardware yet. Not tested on macOS or Windows, and not tested wired.