1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

add error message for not being connected

This commit is contained in:
cTn 2014-06-20 11:59:53 +02:00
parent 19de1e8040
commit 8dfec796ee
2 changed files with 61 additions and 54 deletions

View file

@ -493,6 +493,9 @@
"loggingBack": {
"message": "Leave Logging / Disconnect"
},
"loggingErrorNotConnected": {
"message": "You need to <strong>connect</strong> first"
},
"loggingErrorLogFile": {
"message": "Please select log file"
},

View file

@ -40,6 +40,7 @@ function tab_initialize_logging() {
$('a.log_file').click(prepare_file);
$('a.logging').click(function() {
if (GUI.connected_to) {
if (fileEntry != null) {
var clicks = $(this).data('clicks');
@ -110,6 +111,9 @@ function tab_initialize_logging() {
} else {
GUI.log(chrome.i18n.getMessage('loggingErrorLogFile'));
}
} else {
GUI.log(chrome.i18n.getMessage('loggingErrorNotConnected'));
}
});
if (MSP_pass_through) {