mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
bugfixes
This commit is contained in:
parent
bf3a6b40b3
commit
6e9ac33cba
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ function process_data(code, message_buffer, message_length) {
|
|||
|
||||
// remove object from array
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue