1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

failed to open port (still requires notification)

This commit is contained in:
cTn 2013-11-08 15:34:52 +01:00
parent a91e04e1c4
commit 4fcd47b7e3

View file

@ -278,6 +278,14 @@ function onOpen(openInfo) {
send_message(MSP_codes.MSP_BOX, MSP_codes.MSP_BOX);
}, connection_delay * 1000);
} else {
console.log('Failed to open serial port');
$('div#port-picker a.connect').text('Connect');
$('div#port-picker a.connect').removeClass('active');
// reset data
$('div#port-picker a.connect').data("clicks", false);
}
}