Skip to content

Connections issues that leaves the UI in a broken state. #4745

@hydra

Description

@hydra

Describe the bug

I just built a BF target from master and used the online app.betaflight.com configurator to flash it, no problems, but when I connect it says I need a newer version of firmware, but there is no newer version of firmware, since I just built it from master...

It then leaves the UI in a broken state which cannot be recovered.

Discord chat link: https://discord.com/channels/868013470023548938/1019022739044057128/1450886747457323048

To Reproduce

  1. Flash firmware from firmware repo, using master which was at git rev: f490d75af25b2892af57b229a4ae82954267f3bf
  2. Press Connect
  3. Observe error message about 'newer version'.
  4. Press OK.
  5. Observe CLI doesn't connect. Observe MSP version is reported as 0.0.0 in the log.
  6. Press Disconnect.
  7. Observe UI is now in a broken state - Only CLI on left hand side, no port selection control, etc.

Expected behavior

A working configurator. No error messages. A cli that works even if the firmware is too old. Useful error messages when there are communication issues.

App version

2025.12.0-RC4 (d0a3ff8)

Flight controller configuration

There seems to be multiple issues:
1) a communication error resuing in an invalid MSP version.
2) incorrect handling of invalid MSP version and/or failed communications.
3) incorrect error messages - perhaps 'communication error' with some information to help diagnose the issue.

Add any other context about the problem that you think might be relevant here

Initial error was with Google Chome: Version 143.0.7499.109 (Official Build) (64-bit) Windows 11 24Q2.
Upgraded to Version 143.0.7499.147 (Official Build) (64-bit) and things were better.

Videos:

  1. first occurence of the issue, with Google Chome: Version 143.0.7499.109
    https://github.com/user-attachments/assets/07bd268d-a31a-4a87-9c95-690321c413e7

  2. second issue with Google Chome: Version 143.0.7499.147
    https://github.com/user-attachments/assets/0b42729a-a816-4e53-8df1-9721e9f7e414

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions