Repository navigation
fix(app): leave the passthrough when no ESC answers - #594
Merged
Merged
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 12 |
| Duplication | 4 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
A flight controller left in passthrough answers the 4-way info with NOT OK when no ESC is powered; exit anyway so MSP works again.
Jschmiedd
force-pushed
the
fix/passthrough-no-esc
branch
from
November 19, 2026 21:16
4928ba7 to
a7eb8c2
Compare
Jschmiedd
marked this pull request as ready for review
November 19, 2026 21:22
stylesuxx
approved these changes
Nov 22, 2026
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.
Follows #593.
Problem
When the flight controller is still in 4-way passthrough (for example after the page was closed during a read) and the ESCs are not powered, connecting again fails:
hasResetsstays false, soexitFourWayInterfaceis never sent, and the board stays in passthrough until it is power-cycled.Fix
A NOT OK answer to the 4-way info is still an answer from the 4-way interface, so the board is in passthrough: remember it (
inPassthrough) and send the exit, as already done after resets. Any other error is handled as before. Nothing changes when the board answers MSP normally.Test
New test in
src/Containers/App/__tests__/index.test.jsx: API version times out 5 times, 4-way info answers NOT OK → no reset, exit sent once withtrue, no "initialization failed", port stays open. Full Jest suite passes.Bench
Tested on hardware (SpeedyBee F405 Mini, 4 × Bluejay 0.19 J-H-40) with the same change in the TrueGlide ESC tab (commit 18132c7), not on this branch: board left in passthrough with the battery unplugged, reconnect → the exit is sent (logged by the TrueGlide tab only), then MSP works and the 4 ESCs read normally once the battery is plugged in.