Skip to content

fix(companion): restore switch positions after simulator startup#7262

Open
raphaelcoeffic wants to merge 1 commit intomainfrom
fix-7259
Open

fix(companion): restore switch positions after simulator startup#7262
raphaelcoeffic wants to merge 1 commit intomainfrom
fix-7259

Conversation

@raphaelcoeffic
Copy link
Copy Markdown
Member

boardInit() resets all switch states during simuMain(), which is called by simulatorStart. Moving restoreRadioWidgetsState() from start() to onSimulatorStarted() ensures saved switch positions are applied after the firmware has fully initialized, keeping UI and backend in sync.

Fixes #7259 and #7246

boardInit() resets all switch states during simuMain(), which is called
by simulatorStart. Moving restoreRadioWidgetsState() from start() to
onSimulatorStarted() ensures saved switch positions are applied after
the firmware has fully initialized, keeping UI and backend in sync.

Fixes #7259

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@raphaelcoeffic raphaelcoeffic added this to the 2.12.1 milestone Apr 5, 2026
@raphaelcoeffic raphaelcoeffic added companion Related to the companion software bug/regression ↩️ A new version of EdgeTX broke something labels Apr 5, 2026
@raphaelcoeffic raphaelcoeffic linked an issue Apr 5, 2026 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug/regression ↩️ A new version of EdgeTX broke something companion Related to the companion software

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simulator does not initialize with remembered switch position Simulator initialisation of switches

1 participant