mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +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,
|
||||
bufView;
|
||||
|
||||
if (callback_onerror === undefined) {
|
||||
if (!callback_onerror) {
|
||||
var callbackOnError = false;
|
||||
} else {
|
||||
var callbackOnError = true;
|
||||
|
|
|
@ -1300,7 +1300,7 @@ MspHelper.prototype.dataflashRead = function(address, blockSize, onDataCallback)
|
|||
console.log('CRC error for address ' + address + ' - retrying');
|
||||
onDataCallback(address, null); // returning null to the callback forces a retry
|
||||
}
|
||||
},true);
|
||||
}, true);
|
||||
};
|
||||
|
||||
MspHelper.prototype.sendServoConfigurations = function(onCompleteCallback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue