1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
This commit is contained in:
cTn 2014-02-28 20:34:11 +01:00
parent bf3a6b40b3
commit 6e9ac33cba

View file

@ -526,7 +526,7 @@ function process_data(code, message_buffer, message_length) {
// remove object from array // remove object from array
// we need to check if the callback object still exists as it could have been touched/removed in callback routine // we need to check if the callback object still exists as it could have been touched/removed in callback routine
if (MSP.callbacks.indexOf(obj) > 0) MSP.callbacks.splice(i, 1); if (MSP.callbacks.indexOf(obj) > -1) MSP.callbacks.splice(MSP.callbacks.indexOf(obj), 1);
} }
} }
} }