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:
parent
0bf02e5398
commit
af785b3070
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue