Skip to content

Fix Sub VFO blank at startup (issue #19 follow-up)#30

Closed
adecarolis wants to merge 1 commit intomasterfrom
fix-sub-vfo-startup-poll
Closed

Fix Sub VFO blank at startup (issue #19 follow-up)#30
adecarolis wants to merge 1 commit intomasterfrom
fix-sub-vfo-startup-poll

Conversation

@adecarolis
Copy link
Copy Markdown
Owner

Summary

  • Follow-up to UI elements not populated after power-up from LAN #19 — after PR Fix UI elements not populated after LAN power-up (#19) #29 fixed the main-VFO population, the reporter noted that Sub VFO stayed blank at "------" until they manually selected it and changed the frequency.
  • Root cause: receiveCache sent all freq/mode cache updates as the generic frequency/mode fields, ignoring item.receiver. On cmd29 rigs (IC-7610, IC-785x, etc.), Sub receiver responses either overwrote the Main display or were silently dropped (A/B rigs' funcUnselectedFreq wasn't even in the mapping).
  • Fix: detect VFO B updates (receiver == 1 on cmd29, or funcUnselectedFreq/Mode on A/B rigs) and route them to vfoBFrequency, so the normal periodic-polling flow populates the Sub display automatically. Sub mode updates are dropped since the UI has no Sub mode field.

Test plan

  • qmake wfweb.pro && make -j — builds clean
  • pytest . — 49/49 tests pass
  • Reporter (otti-soft) to verify Sub VFO populates on LAN power-up without manual VFO switch (IC-7610 or similar cmd29 rig)

🤖 Generated with Claude Code

receiveCache previously sent all funcFreq/funcMode updates as the
generic "frequency"/"mode" fields, regardless of which receiver
produced them. On cmd29 rigs (IC-7610 etc) this caused Sub receiver
poll responses to overwrite the Main display (or be silently dropped
on A/B rigs where funcUnselectedFreq wasn't mapped), leaving the
Sub VFO display blank at startup until the user manually switched.

Detect VFO B updates (receiver=1 on cmd29, or funcUnselectedFreq/Mode
otherwise) and route them to vfoBFrequency so the browser's Sub VFO
display populates from the normal periodic-polling flow. Sub mode
updates are dropped (no Sub mode field in the UI) rather than
overwriting the Main mode.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@adecarolis adecarolis closed this Apr 17, 2026
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