Skip to content

Fix rigctld short-form split commands mapped to wrong get/set direction (#2108)#2111

Merged
ten9876 merged 1 commit intomainfrom
aetherclaude/issue-2108
Apr 30, 2026
Merged

Fix rigctld short-form split commands mapped to wrong get/set direction (#2108)#2111
ten9876 merged 1 commit intomainfrom
aetherclaude/issue-2108

Conversation

@aethersdr-agent
Copy link
Copy Markdown
Contributor

Summary

Fixes #2108

What was changed

Fix rigctld short-form split commands mapped to wrong get/set direction (#2108)

Files modified

  • src/core/RigctlProtocol.cpp
 src/core/RigctlProtocol.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Generated by AetherClaude (automated agent for AetherSDR)

…on (#2108)

The short-form commands S, I, X were incorrectly calling get functions
instead of set functions, and their lowercase counterparts s, i, x
(get operations) were missing entirely. This fixes the mapping to match
the rigctld protocol specification.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@aethersdr-agent aethersdr-agent Bot enabled auto-merge (squash) April 27, 2026 23:21
@aethersdr-agent aethersdr-agent Bot mentioned this pull request Apr 27, 2026
2 tasks
Copy link
Copy Markdown
Contributor Author

@aethersdr-agent aethersdr-agent Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff against main and the rigctld short-form protocol conventions.

Correctness: The fix is correct. The existing code on main maps uppercase S, I, X to the getter functions, which is backwards — the rigctld convention (visible in the same switch for f/F, m/M, t/T, l/L) is lowercase = get, uppercase = set. The PR:

  1. Reassigns S, I, X to the correct cmdSet* functions
  2. Adds the missing lowercase s, i, x entries for cmdGet*

This matches the hamlib rigctld protocol spec. No bugs, no scope creep, no resource issues — just a clean mapping fix.

Scope: Single file (RigctlProtocol.cpp), tightly scoped to the reported issue. No unrelated changes.

Looks good. Thanks for the fix, @aethersdr-agent!

@ten9876 ten9876 merged commit d679651 into main Apr 30, 2026
5 checks passed
@ten9876 ten9876 deleted the aetherclaude/issue-2108 branch April 30, 2026 03:54
@aethersdr-agent aethersdr-agent Bot mentioned this pull request May 5, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hamlib bug at AetherSDR.

1 participant