1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +03:00

Run message deduplication based on full roundtrip, not only input queue

This commit is contained in:
Pawel Spychalski (DzikuVx) 2024-04-26 12:38:28 +02:00
parent 93bb0eba4f
commit 2156090a0d
5 changed files with 47 additions and 11 deletions

View file

@ -1621,6 +1621,9 @@ var mspHelper = (function () {
mspQueue.putHardwareRoundtrip(new Date().getTime() - dataHandler.callbacks[i].sentOn);
}
//remove message from queue as received
mspQueue.removeMessage(dataHandler.code);
// remove object from array
dataHandler.callbacks.splice(i, 1);