mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
add error message for not being connected
This commit is contained in:
parent
19de1e8040
commit
8dfec796ee
2 changed files with 61 additions and 54 deletions
|
@ -493,6 +493,9 @@
|
||||||
"loggingBack": {
|
"loggingBack": {
|
||||||
"message": "Leave Logging / Disconnect"
|
"message": "Leave Logging / Disconnect"
|
||||||
},
|
},
|
||||||
|
"loggingErrorNotConnected": {
|
||||||
|
"message": "You need to <strong>connect</strong> first"
|
||||||
|
},
|
||||||
"loggingErrorLogFile": {
|
"loggingErrorLogFile": {
|
||||||
"message": "Please select log file"
|
"message": "Please select log file"
|
||||||
},
|
},
|
||||||
|
|
|
@ -40,6 +40,7 @@ function tab_initialize_logging() {
|
||||||
$('a.log_file').click(prepare_file);
|
$('a.log_file').click(prepare_file);
|
||||||
|
|
||||||
$('a.logging').click(function() {
|
$('a.logging').click(function() {
|
||||||
|
if (GUI.connected_to) {
|
||||||
if (fileEntry != null) {
|
if (fileEntry != null) {
|
||||||
var clicks = $(this).data('clicks');
|
var clicks = $(this).data('clicks');
|
||||||
|
|
||||||
|
@ -110,6 +111,9 @@ function tab_initialize_logging() {
|
||||||
} else {
|
} else {
|
||||||
GUI.log(chrome.i18n.getMessage('loggingErrorLogFile'));
|
GUI.log(chrome.i18n.getMessage('loggingErrorLogFile'));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
GUI.log(chrome.i18n.getMessage('loggingErrorNotConnected'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (MSP_pass_through) {
|
if (MSP_pass_through) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue