Skip to content

Commit ef9823f

Browse files
authored
Merge pull request #684 from mikeller/fix_dataflash_unavailable_during_erase
Fix dataflash unavailable during erase
2 parents 7fe377f + f15904a commit ef9823f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/msp/MSPHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
10001000
if (data.byteLength >= 13) {
10011001
var flags = data.readU8();
10021002
DATAFLASH.ready = (flags & 1) != 0;
1003-
DATAFLASH.supported = (flags & 2) != 0 || DATAFLASH.ready;
1003+
DATAFLASH.supported = (flags & 2) != 0;
10041004
DATAFLASH.sectors = data.readU32();
10051005
DATAFLASH.totalSize = data.readU32();
10061006
DATAFLASH.usedSize = data.readU32();

tabs/onboard_logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TABS.onboard_logging.initialize = function (callback) {
156156

157157
if (semver.gte(CONFIG.apiVersion, "1.33.0")) {
158158
deviceSelect.append('<option value="0">' + chrome.i18n.getMessage('blackboxLoggingNone') + '</option>');
159-
if (DATAFLASH.ready) {
159+
if (DATAFLASH.supported) {
160160
deviceSelect.append('<option value="1">' + chrome.i18n.getMessage('blackboxLoggingFlash') + '</option>');
161161
}
162162
if (SDCARD.supported) {

0 commit comments

Comments
 (0)