mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
Merge pull request #897 from iNavFlight/agh_fix_double_call_dispatch
Fix double dispatch of MSP calls with the same code
This commit is contained in:
commit
5f63b73226
1 changed files with 4 additions and 1 deletions
|
@ -1495,7 +1495,10 @@ var mspHelper = (function (gui) {
|
|||
dataHandler.callbacks.splice(i, 1);
|
||||
|
||||
// fire callback
|
||||
if (callback) callback({'command': dataHandler.code, 'data': data, 'length': dataHandler.message_length_expected});
|
||||
if (callback) {
|
||||
callback({'command': dataHandler.code, 'data': data, 'length': dataHandler.message_length_expected});
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue