1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 13:25:24 +03:00

Added a flag to notify FC we're ready to handle compressed blackbox data

This commit is contained in:
DieHertz 2017-07-25 23:36:16 +03:00
parent 0bf02e5398
commit af785b3070

View file

@ -1470,6 +1470,11 @@ MspHelper.prototype.dataflashRead = function(address, blockSize, onDataCallback)
outData = outData.concat([blockSize & 0xFF, (blockSize >> 8) & 0xFF]);
}
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
// Allow compression
outData = outData.concat([1]);
}
MSP.send_message(MSPCodes.MSP_DATAFLASH_READ, outData, false, function(response) {
if (!response.crcError) {
var chunkAddress = response.data.readU32();