mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
Force a cleanup when a serial device is lost, this happens when VCP
targets reboot.
This commit is contained in:
parent
60bfeed194
commit
c0038b43cc
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ var serial = {
|
|||
break;
|
||||
|
||||
case 'device_lost':
|
||||
// TODO
|
||||
if (GUI.connected_to || GUI.connecting_to) {
|
||||
$('a.connect').click();
|
||||
} else {
|
||||
self.disconnect();
|
||||
}
|
||||
break;
|
||||
|
||||
case 'disconnected':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue