mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 19:40:22 +03:00
fixing things…
This commit is contained in:
parent
87e9bfd3d9
commit
d15dbca994
1 changed files with 21 additions and 4 deletions
|
@ -238,10 +238,21 @@ function onConnect() {
|
||||||
$('#tabs ul.mode-connected').show();
|
$('#tabs ul.mode-connected').show();
|
||||||
|
|
||||||
if ("CLFL" == CONFIG.flightControllerIdentifier){
|
if ("CLFL" == CONFIG.flightControllerIdentifier){
|
||||||
var documentationButton = $('#button-documentation');
|
|
||||||
|
/* placing this elsewhere
|
||||||
|
var documentationButton = $('#button-documentation');
|
||||||
documentationButton.show();
|
documentationButton.show();
|
||||||
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
||||||
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* just a thought
|
||||||
|
var sensor_state = $('#sensor-status');
|
||||||
|
sensor_state.show();
|
||||||
|
*/
|
||||||
|
|
||||||
|
var flashstate = $('#header_dataflash');
|
||||||
|
flashstate.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,8 +266,14 @@ function onClosed(result) {
|
||||||
$('#tabs ul.mode-connected').hide();
|
$('#tabs ul.mode-connected').hide();
|
||||||
$('#tabs ul.mode-disconnected').show();
|
$('#tabs ul.mode-disconnected').show();
|
||||||
|
|
||||||
var documentationButton = $('#button-documentation');
|
|
||||||
documentationButton.hide();
|
var flashstate = $('#header_dataflash');
|
||||||
|
flashstate.hide();
|
||||||
|
|
||||||
|
/* just a thought
|
||||||
|
var sensor_state = $('#sensor-status');
|
||||||
|
sensor_state.hide();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function read_serial(info) {
|
function read_serial(info) {
|
||||||
|
@ -359,4 +376,4 @@ function bit_set(num, bit) {
|
||||||
|
|
||||||
function bit_clear(num, bit) {
|
function bit_clear(num, bit) {
|
||||||
return num & ~(1 << bit);
|
return num & ~(1 << bit);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue