mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
Disconnect on F1 boards when 'break' is received if connected. This
happens when the device reboots due to incorrect hardware initialisation. This prevents the GUI saying 'waiting for data'. See https://github.com/cleanflight/cleanflight/pull/1436 Since the problem is already fixed in firmware there's not much reason to spent development working on additional GUI fixes. A disconnect will suffice.
This commit is contained in:
parent
f0144b3d99
commit
b4730034c8
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,12 @@ var serial = {
|
|||
});
|
||||
}
|
||||
break;
|
||||
case 'break':
|
||||
// This occurs on F1 boards with old firmware.
|
||||
if (GUI.connected_to || GUI.connecting_to) {
|
||||
$('a.connect').click();
|
||||
}
|
||||
break;
|
||||
case 'timeout':
|
||||
// TODO
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue