mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
failed to open port (still requires notification)
This commit is contained in:
parent
a91e04e1c4
commit
4fcd47b7e3
1 changed files with 8 additions and 0 deletions
|
@ -278,6 +278,14 @@ function onOpen(openInfo) {
|
||||||
send_message(MSP_codes.MSP_BOX, MSP_codes.MSP_BOX);
|
send_message(MSP_codes.MSP_BOX, MSP_codes.MSP_BOX);
|
||||||
|
|
||||||
}, connection_delay * 1000);
|
}, 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue