Fix incorrect dataflash ui when using old firmware.

10.3.x-maintenance
Dominic Clifton 2015-03-12 00:27:33 +00:00
parent e462439c1b
commit 90a9a7e6ae
1 changed files with 4 additions and 3 deletions

View File

@ -20,13 +20,13 @@ TABS.dataflash.initialize = function (callback) {
log_buffer = [];
if (CONFIGURATOR.connectionValid) {
if (CONFIG.apiVersion < 1.6) {
TABS.dataflash.available = (CONFIG.apiVersion >= 1.6)
if (!TABS.dataflash.available) {
load_html();
return;
}
TABS.dataflash.available = true;
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false, load_html);
}
@ -107,6 +107,7 @@ TABS.dataflash.initialize = function (callback) {
$(".tab-dataflash .note").html(chrome.i18n.getMessage('dataflashNotSupportedNote'));
}
} else {
$(".tab-dataflash").removeClass("supported");
$(".tab-dataflash .note").html(chrome.i18n.getMessage('dataflashFirmwareUpgradeRequired'));
}