mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
loosened filtering, andjusted PIDs and fixed roundtrip computation
This commit is contained in:
parent
0ed67a752b
commit
f3aea108bd
3 changed files with 9 additions and 9 deletions
|
@ -959,9 +959,6 @@ var mspHelper = (function (gui) {
|
|||
// remove timeout
|
||||
clearTimeout(dataHandler.callbacks[i].timer);
|
||||
|
||||
// remove object from array
|
||||
dataHandler.callbacks.splice(i, 1);
|
||||
|
||||
/*
|
||||
* Compute roundtrip
|
||||
*/
|
||||
|
@ -970,6 +967,9 @@ var mspHelper = (function (gui) {
|
|||
helper.mspQueue.putHardwareRoundtrip(new Date().getTime() - dataHandler.callbacks[i].sentOn);
|
||||
}
|
||||
|
||||
// remove object from array
|
||||
dataHandler.callbacks.splice(i, 1);
|
||||
|
||||
// fire callback
|
||||
if (callback) callback({'command': dataHandler.code, 'data': data, 'length': dataHandler.message_length_expected});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue