Skip to content

Fix RigControl not tracking frequency on initial page load#92

Open
n1zzo wants to merge 1 commit intoluarvique:masterfrom
n1zzo:fix/rigcontrol-initial-frequency-tracking
Open

Fix RigControl not tracking frequency on initial page load#92
n1zzo wants to merge 1 commit intoluarvique:masterfrom
n1zzo:fix/rigcontrol-initial-frequency-tracking

Conversation

@n1zzo
Copy link
Copy Markdown

@n1zzo n1zzo commented Apr 20, 2026

rigStart() unconditionally clears fCenter and fOffset after the rigctl process is started. When wireProperty subscriptions are set up before rigStart(), the immediate callback from wireProperty("center_freq") correctly populates fCenter, but rigStart() then overwrites it with None.

This causes setFrequencyOffset() to silently skip all frequency commands (guarded by if self.fCenter is not None) until a profile change re-fires setCenterFrequency and repopulates fCenter.

Fix by moving rigStart() before the wireProperty subscriptions so that the clearing happens first (on already-None values) and the property callbacks then populate fCenter/fOffset with correct values that are never overwritten.

rigStart() unconditionally clears fCenter and fOffset after the rigctl
process is started. When wireProperty subscriptions are set up before
rigStart(), the immediate callback from wireProperty("center_freq")
correctly populates fCenter, but rigStart() then overwrites it with None.

This causes setFrequencyOffset() to silently skip all frequency commands
(guarded by `if self.fCenter is not None`) until a profile change
re-fires setCenterFrequency and repopulates fCenter.

Fix by moving rigStart() before the wireProperty subscriptions so that
the clearing happens first (on already-None values) and the property
callbacks then populate fCenter/fOffset with correct values that are
never overwritten.
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.

1 participant