1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 12:25:13 +03:00

Force a cleanup when a serial device is lost, this happens when VCP

targets reboot.
This commit is contained in:
Dominic Clifton 2016-03-24 14:51:13 +01:00
parent 60bfeed194
commit c0038b43cc

View file

@ -105,7 +105,11 @@ var serial = {
break; break;
case 'device_lost': case 'device_lost':
// TODO if (GUI.connected_to || GUI.connecting_to) {
$('a.connect').click();
} else {
self.disconnect();
}
break; break;
case 'disconnected': case 'disconnected':