mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 13:25:24 +03:00
Revise handling of msp CRC errors to prevent referencing undefined objects and allow blackbox packets to retry
This commit is contained in:
parent
8a286bdeed
commit
0dd0839b54
2 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ var MSP = {
|
||||||
var bufferOut,
|
var bufferOut,
|
||||||
bufView;
|
bufView;
|
||||||
|
|
||||||
if (callback_onerror === undefined) {
|
if (!callback_onerror) {
|
||||||
var callbackOnError = false;
|
var callbackOnError = false;
|
||||||
} else {
|
} else {
|
||||||
var callbackOnError = true;
|
var callbackOnError = true;
|
||||||
|
|
|
@ -1300,7 +1300,7 @@ MspHelper.prototype.dataflashRead = function(address, blockSize, onDataCallback)
|
||||||
console.log('CRC error for address ' + address + ' - retrying');
|
console.log('CRC error for address ' + address + ' - retrying');
|
||||||
onDataCallback(address, null); // returning null to the callback forces a retry
|
onDataCallback(address, null); // returning null to the callback forces a retry
|
||||||
}
|
}
|
||||||
},true);
|
}, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
MspHelper.prototype.sendServoConfigurations = function(onCompleteCallback) {
|
MspHelper.prototype.sendServoConfigurations = function(onCompleteCallback) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue