1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 01:05:12 +03:00

Added firmware version number to configurator

This commit is contained in:
Darren Lines 2020-11-26 21:07:58 +00:00
parent 8885225ddb
commit ac0edfcea1
5 changed files with 34 additions and 2 deletions

11
main.js
View file

@ -54,6 +54,7 @@ $(document).ready(function () {
$('#status-bar .version').text(chrome.runtime.getManifest().version);
$('#logo .version').text(chrome.runtime.getManifest().version);
updateFirmwareVersion();
// notification messages for various operating systems
switch (GUI.operating_system) {
@ -524,10 +525,16 @@ String.prototype.format = function () {
});
};
function updateActivatedTab() {
var activeTab = $('#tabs > ul li.active');
activeTab.removeClass('active');
$('a', activeTab).trigger('click');
}
function updateFirmwareVersion() {
if (CONFIGURATOR.connectionValid) {
$('#logo .firmware_version').text(CONFIG.flightControllerVersion);
} else {
$('#logo .firmware_version').text(chrome.i18n.getMessage('fcNotConnected'));
}
}