diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js index 19e0b4b8..fc916e79 100644 --- a/js/msp/MSPHelper.js +++ b/js/msp/MSPHelper.js @@ -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();