1
0
Fork 0
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:
Dominic Clifton 2015-12-16 14:49:58 +01:00
parent f0144b3d99
commit b4730034c8

View file

@ -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;