Fix auto mode button states and RX logging subscription behavior#163
Merged
Conversation
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix auto mode button state and RX logging issues
Fix auto mode button states and RX logging subscription behavior
Dec 30, 2025
There was a problem hiding this comment.
Pull request overview
This PR fixes three critical issues that emerged after merging PRs #161 and #162: RX Auto button remaining disabled after stopping TX/RX Auto, TX/RX Auto button not being blocked when RX Auto is active, and RX Log collecting observations even when auto modes are OFF.
Key changes:
- Added
updateControlsForCooldown()calls at all four auto mode start/stop transition points to ensure proper button mutual exclusion - Added subscription mode check in
handlePassiveRxLogging()to prevent passive RX logging when auto modes are OFF
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
After merging PRs #161 and #162, three issues emerged: RX Auto button stayed disabled after stopping TX/RX Auto, TX/RX Auto button wasn't blocked when RX Auto was active, and RX Log collected observations even when auto modes were OFF.
Changes
Button state management
updateControlsForCooldown()calls in all four auto mode start/stop functions to properly enforce mutual exclusionupdateControlsForCooldown()already implements correct button state rules; it just wasn't being invoked at transition pointsRX logging subscription check
handlePassiveRxLogging()whenrxSubscription.modeis null or'txPing''txRxAuto'or'rxAuto'Behavior After Fix
Impact: Proper button mutual exclusion, no unwanted RX processing when idle, reduced battery/memory usage.
Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.