1
0
Fork 0
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:
Paweł Spychalski 2020-01-22 09:49:27 +01:00 committed by GitHub
commit 5f63b73226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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