Skip to content

Guard m_hidCoalesceTimer reference behind HAVE_HIDAPI (Windows build)#1606

Merged
ten9876 merged 1 commit into
mainfrom
auto/Guard-mhidCoalesceTimer-reference-behind-HAVEHIDAP
Apr 18, 2026
Merged

Guard m_hidCoalesceTimer reference behind HAVE_HIDAPI (Windows build)#1606
ten9876 merged 1 commit into
mainfrom
auto/Guard-mhidCoalesceTimer-reference-behind-HAVEHIDAP

Conversation

@ten9876

@ten9876 ten9876 commented Apr 18, 2026

Copy link
Copy Markdown
Collaborator
  • Schedule rigctld client sockets for deletion on server stop
  • Guard m_hidCoalesceTimer reference behind HAVE_HIDAPI (Windows build)

- Schedule rigctld client sockets for deletion on server stop
- Guard m_hidCoalesceTimer reference behind HAVE_HIDAPI (Windows build)
@ten9876 ten9876 enabled auto-merge (squash) April 18, 2026 15:02
@ten9876 ten9876 merged commit 120795c into main Apr 18, 2026
4 checks passed
@ten9876 ten9876 deleted the auto/Guard-mhidCoalesceTimer-reference-behind-HAVEHIDAP branch April 18, 2026 15:08
NF0T added a commit to NF0T/AetherSDR that referenced this pull request Apr 18, 2026
…thersdr#1606 partial)

Upstream PR aethersdr#1606 guarded m_hidCoalesceTimer behind HAVE_HIDAPI but left
m_flexCoalesceTimer unguarded. Wrap it in HAVE_SERIALPORT to match the
header declaration and fix Windows builds without serial port support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@NF0T

NF0T commented Apr 18, 2026

Copy link
Copy Markdown
Collaborator

This fix covers the HIDAPI side, but there's a matching issue on the SERIALPORT side in the same lambda (also added in #1527). m_flexCoalesceTimer is declared inside #ifdef HAVE_SERIALPORT in MainWindow.h but the line directly above the HIDAPI guard uses it unconditionally:

// After this PR (line ~4846):
bool activeTuning = m_flexCoalesceTimer.isActive();  // ← still unguarded
#ifdef HAVE_HIDAPI
activeTuning = activeTuning || m_hidCoalesceTimer.isActive();
#endif

This breaks Windows builds where HAVE_SERIALPORT is not defined. The fix is the same pattern:

bool activeTuning = false;
#ifdef HAVE_SERIALPORT
activeTuning = activeTuning || m_flexCoalesceTimer.isActive();
#endif
#ifdef HAVE_HIDAPI
activeTuning = activeTuning || m_hidCoalesceTimer.isActive();
#endif

Happy to open a follow-up PR if helpful.

NF0T added a commit to NF0T/AetherSDR that referenced this pull request Apr 18, 2026
…thersdr#1606 partial)

Upstream PR aethersdr#1606 guarded m_hidCoalesceTimer behind HAVE_HIDAPI but left
m_flexCoalesceTimer unguarded. Wrap it in HAVE_SERIALPORT to match the
header declaration and fix Windows builds without serial port support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
NF0T added a commit to NF0T/AetherSDR that referenced this pull request Apr 18, 2026
…thersdr#1606 partial)

Upstream PR aethersdr#1606 guarded m_hidCoalesceTimer behind HAVE_HIDAPI but left
m_flexCoalesceTimer unguarded. Wrap it in HAVE_SERIALPORT to match the
header declaration and fix Windows builds without serial port support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
NF0T added a commit to NF0T/AetherSDR that referenced this pull request Apr 20, 2026
…thersdr#1606 partial)

Upstream PR aethersdr#1606 guarded m_hidCoalesceTimer behind HAVE_HIDAPI but left
m_flexCoalesceTimer unguarded. Wrap it in HAVE_SERIALPORT to match the
header declaration and fix Windows builds without serial port support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
NF0T added a commit to NF0T/AetherSDR that referenced this pull request Apr 21, 2026
…thersdr#1606 partial)

Upstream PR aethersdr#1606 guarded m_hidCoalesceTimer behind HAVE_HIDAPI but left
m_flexCoalesceTimer unguarded. Wrap it in HAVE_SERIALPORT to match the
header declaration and fix Windows builds without serial port support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ten9876 pushed a commit that referenced this pull request Apr 21, 2026
 partial) (#1812)

Upstream PR #1606 guarded m_hidCoalesceTimer behind HAVE_HIDAPI but left
m_flexCoalesceTimer unguarded. Wrap it in HAVE_SERIALPORT to match the
header declaration and fix Windows builds without serial port support.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants