mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 19:40:22 +03:00
moving firmware version info to gui.log
This commit is contained in:
parent
8d6702c15e
commit
7af2c39aca
3 changed files with 7 additions and 7 deletions
|
@ -18,10 +18,11 @@
|
||||||
"statusbar_packet_error": {
|
"statusbar_packet_error": {
|
||||||
"message": "Packet error:"
|
"message": "Packet error:"
|
||||||
},
|
},
|
||||||
"statusbar_firmware_version": {
|
|
||||||
"message": "Firmware Version:"
|
|
||||||
},
|
|
||||||
"statusbar_cycle_time": {
|
"statusbar_cycle_time": {
|
||||||
"message": "Cycle Time:"
|
"message": "Cycle Time:"
|
||||||
|
},
|
||||||
|
|
||||||
|
"firmware_version": {
|
||||||
|
"message": "Firmware Version: <strong>$1</strong>"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -160,11 +160,11 @@ function onOpen(openInfo) {
|
||||||
send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() {
|
send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() {
|
||||||
GUI.timeout_remove('connecting'); // kill connecting timer
|
GUI.timeout_remove('connecting'); // kill connecting timer
|
||||||
|
|
||||||
if (CONFIG.version >= firmware_version_accepted) {
|
GUI.log(chrome.i18n.getMessage('firmware_version', [CONFIG.version]));
|
||||||
// Update UI elements that doesn't need consistent refreshing
|
|
||||||
$('.software-version').html(CONFIG.version);
|
|
||||||
|
|
||||||
|
if (CONFIG.version >= firmware_version_accepted) {
|
||||||
configuration_received = true;
|
configuration_received = true;
|
||||||
|
|
||||||
$('div#port-picker a.connect').text('Disconnect').addClass('active');
|
$('div#port-picker a.connect').text('Disconnect').addClass('active');
|
||||||
$('#tabs li a:first').click();
|
$('#tabs li a:first').click();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -119,7 +119,6 @@
|
||||||
<div id="status-bar">
|
<div id="status-bar">
|
||||||
<span i18n="statusbar_port_utilization"></span> <span class="port_usage_down">D: 0%</span> <span class="port_usage_up">U: 0%</span> |
|
<span i18n="statusbar_port_utilization"></span> <span class="port_usage_down">D: 0%</span> <span class="port_usage_up">U: 0%</span> |
|
||||||
<span i18n="statusbar_packet_error"></span> <span class="packet-error">0</span> |
|
<span i18n="statusbar_packet_error"></span> <span class="packet-error">0</span> |
|
||||||
<span i18n="statusbar_firmware_version"></span> <span class="software-version">0.0</span> |
|
|
||||||
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue