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

Disabled compressed size display for uncompressed data

This commit is contained in:
DieHertz 2017-08-01 22:59:33 +03:00
parent 845f6b3524
commit 6db0b08048

View file

@ -1553,7 +1553,7 @@ MspHelper.prototype.dataflashRead = function(address, blockSize, onDataCallback)
* figure out the reply format:
*/
if (dataCompressionType == 0) {
onDataCallback(address, new DataView(response.data.buffer, response.data.byteOffset + headerSize, dataSize), dataSize);
onDataCallback(address, new DataView(response.data.buffer, response.data.byteOffset + headerSize, dataSize));
} else if (dataCompressionType == 1) {
// Read compressed char count to avoid decoding stray bit sequences as bytes
var compressedCharCount = response.data.readU16();