Repository navigation
Conversation
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.
What it does
Fixes Razer Naga V3 Pro (Wireless,
00E8, #91) polling rate detection and on-board button saving ("Save to mouse"), adds a "Saved on the mouse" shortcut tile to the Profile section, and adds opt-in Protocol 2.5 packet tracing to the CLI:devices.json(00E8): Sets"interface": 3and"polling": "standard"for the Naga V3 Pro (Wireless) based on Providing a full report. everything seems to be working. new naga v3 pro #91 (00:85answers01, while00:C0returnsNotSupported; 8000 Hz high-speed polling is only on the Mouse Dock Pro00A4/ V2 Pro00F1).buttons.rs,device.rs):read_input,set_input, andset_slot_inputnow require replies to echo[slot, id](get_echo/transact_echo/ newtransact_slow_echo, 2-byte echo because the Naga V3 Pro does not always echolayerinargs[2]), preventing stale cached replies on wireless receivers/docks from corruptingsave.beforeor causingset_slot_inputto skip writes.set_slot_inputnow reads back the on-board slot after writing and retries up to 3 times (matchingcreate_macro), returning an explicit error (the device didn't keep ...) if the slot doesn't retain the assignment.editor.html): Adds a "Saved on the mouse" tile in the Profile section for mice so users can save to the mouse directly from Profiles as well as Buttons.-v/--verboseorSECBIRD_TRACE=1): Logs Protocol 2.5 requests and replies tostderrfor diagnosing device issues. Serial replies (00:82) are redacted.What I tested, on which device
00E8, firmware v1.0, Windows, no Synapse installed):secbird -d 00E8 inforeadsPolling 1000 Hzcleanly.secbird -v -d 00E8 button grid-1 key:u) works immediately.secbird -v -d 00E8 button save-to-mousewrites Normal + HyperShift remaps to on-board slot 1 and reads them back cleanly via02:8C.secbird-trayclosed and no Synapse installed, pressinggrid-1still outputsufrom on-board memory.cargo test: 143/143 (secbird-core), 8/8 (secbird-tray), 1 doc-test — all pass (including 4 new tests indb.rsandsim.rs).cargo clippy --all-targets -- -D warnings: pass, zero warnings.node --test crates/secbird-tray/tests/*.test.cjs: 7/7 pass.What I couldn't test
00E7) and Mouse Dock Pro / V2 Pro (00A4/00F1) — only tested on the Naga V3 Pro's own 2.4 GHz wireless dongle (00E8).Risks / impact on other devices
[slot, id](args[0..2]), which Protocol 2.5 echoes for both02:0C/02:8Cand02:0D/02:8D.set_slot_inputread-back only runs on explicit "Save to mouse" / "Put back" actions and compares againstAction::decode(function, data)so rounded turbo rates do not false-fail.devices.jsononly changes PID00E8(backed by Providing a full report. everything seems to be working. new naga v3 pro #91);00E7(wired) and other models are untouched.Checklist
cargo testandcargo clippy --all-targets -- -D warningspassnode --test crates/secbird-tray/tests/*.test.cjspasses[Unreleased]