1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 22:05:13 +03:00

Revise handling of msp CRC errors to prevent referencing undefined objects and allow blackbox packets to retry

This commit is contained in:
Bruce Luckcuck 2017-02-06 21:13:12 -05:00
parent 8a286bdeed
commit 0dd0839b54
2 changed files with 2 additions and 2 deletions

View file

@ -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;