1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

i18n serial console and others

This commit is contained in:
Miguel Angel Mulero Martinez 2018-01-21 18:23:48 +01:00
parent 7a6ae52e34
commit da526cd123
6 changed files with 14 additions and 8 deletions

View file

@ -66,7 +66,7 @@ var serial = {
self.failed = 0;
} else {
console.log('SERIAL: Connection did not recover from last onReceiveError, disconnecting');
GUI.log('Unrecoverable <span style="color: red">failure</span> of serial connection, disconnecting...');
GUI.log(chrome.i18n.getMessage('serialUnrecoverable'));
if (GUI.connected_to || GUI.connecting_to) {
$('a.connect').click();
@ -96,7 +96,7 @@ var serial = {
if (info.paused) {
// assume unrecoverable, disconnect
console.log('SERIAL: Connection did not recover from ' + self.error + ' condition, disconnecting');
GUI.log('Unrecoverable <span style="color: red">failure</span> of serial connection, disconnecting...');
GUI.log(chrome.i18n.getMessage('serialUnrecoverable'));
if (GUI.connected_to || GUI.connecting_to) {
$('a.connect').click();