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

Extract mspDeduplicationQueue to separate file

This commit is contained in:
Pawel Spychalski (DzikuVx) 2024-04-26 13:10:29 +02:00
parent 2156090a0d
commit 040b0cec52
6 changed files with 55 additions and 41 deletions

View file

@ -27,6 +27,7 @@ const BOARD = require('./boards');
const jBox = require('./libraries/jBox/jBox.min');
const groundstation = require('./groundstation');
const ltmDecoder = require('./ltmDecoder');
const mspDeduplicationQueue = require('./msp/mspDeduplicationQueue');
var SerialBackend = (function () {
@ -239,7 +240,7 @@ var SerialBackend = (function () {
mspQueue.flush();
mspQueue.freeHardLock();
mspQueue.freeSoftLock();
mspQueue.flushMessages();
mspDeduplicationQueue.flush();
CONFIGURATOR.connection.disconnect(privateScope.onClosed);
MSP.disconnect_cleanup();
@ -377,7 +378,7 @@ var SerialBackend = (function () {
mspQueue.flush();
mspQueue.freeHardLock();
mspQueue.freeSoftLock();
mspQueue.flushMessages();
mspDeduplicationQueue.flush();
CONFIGURATOR.connection.emptyOutputBuffer();
$('div.connect_controls a').click(); // disconnect