mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
handle setups with no non-bt serial ports - for real
This commit is contained in:
parent
21a75ea7d3
commit
8913b8bb1c
2 changed files with 20 additions and 19 deletions
|
@ -135,6 +135,7 @@ PortHandler.check = function () {
|
|||
check_usb_devices();
|
||||
}
|
||||
|
||||
GUI.updateManualPortVisibility();
|
||||
setTimeout(function () {
|
||||
self.check();
|
||||
}, 250);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
|
||||
var updateManualPortVisibility = function(){
|
||||
GUI.updateManualPortVisibility = function(){
|
||||
if ($('div#port-picker #port option:selected').data().isManual) {
|
||||
$('#port-override-option').show();
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ $(document).ready(function () {
|
|||
}
|
||||
};
|
||||
|
||||
updateManualPortVisibility();
|
||||
GUI.updateManualPortVisibility();
|
||||
|
||||
$('#port-override').change(function () {
|
||||
chrome.storage.local.set({'portOverride': $('#port-override').val()});
|
||||
|
@ -22,7 +22,7 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
$('div#port-picker #port').change(function (target) {
|
||||
updateManualPortVisibility();
|
||||
GUI.updateManualPortVisibility();
|
||||
});
|
||||
|
||||
$('div#port-picker a.connect').click(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue