1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

visual notify for open/close serial port error

This commit is contained in:
cTn 2013-11-08 18:31:19 +01:00
parent 4fcd47b7e3
commit e532edc748
4 changed files with 17 additions and 1 deletions

View file

@ -280,6 +280,7 @@ function onOpen(openInfo) {
}, connection_delay * 1000);
} else {
console.log('Failed to open serial port');
notify('Failed to open serial port', 'red');
$('div#port-picker a.connect').text('Connect');
$('div#port-picker a.connect').removeClass('active');
@ -302,6 +303,7 @@ function onClosed(result) {
} else { // Something went wrong
if (connectionId > 0) {
console.log('There was an error that happened during "connection-close" procedure.');
notify('Failed to close serial port', 'red');
}
}
}