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

Fixed dataflash not being available for selection while being erased.

This commit is contained in:
mikeller 2017-10-12 01:22:15 +13:00
parent 8246b0728d
commit f15904a6cf
2 changed files with 2 additions and 2 deletions

View file

@ -1000,7 +1000,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
if (data.byteLength >= 13) {
var flags = data.readU8();
DATAFLASH.ready = (flags & 1) != 0;
DATAFLASH.supported = (flags & 2) != 0 || DATAFLASH.ready;
DATAFLASH.supported = (flags & 2) != 0;
DATAFLASH.sectors = data.readU32();
DATAFLASH.totalSize = data.readU32();
DATAFLASH.usedSize = data.readU32();

View file

@ -156,7 +156,7 @@ TABS.onboard_logging.initialize = function (callback) {
if (semver.gte(CONFIG.apiVersion, "1.33.0")) {
deviceSelect.append('<option value="0">' + chrome.i18n.getMessage('blackboxLoggingNone') + '</option>');
if (DATAFLASH.ready) {
if (DATAFLASH.supported) {
deviceSelect.append('<option value="1">' + chrome.i18n.getMessage('blackboxLoggingFlash') + '</option>');
}
if (SDCARD.supported) {