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

msp queue load

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-20 21:39:48 +01:00
parent 9594880041
commit 083eee3115
7 changed files with 53 additions and 7 deletions

View file

@ -100,8 +100,8 @@ $(document).ready(function () {
} else {
var wasConnected = CONFIGURATOR.connectionValid;
helper.timeout.killAll(['global_data_refresh']);
helper.interval.killAll(['global_data_refresh']);
helper.timeout.killAll();
helper.interval.killAll(['global_data_refresh', 'msp-load-update']);
GUI.tab_switch_cleanup();
GUI.tab_switch_in_progress = false;
CONFIGURATOR.connectionValid = false;
@ -327,6 +327,10 @@ function onConnect() {
*/
MSP.send_message(MSPCodes.MSP_BOXNAMES, false, false);
helper.interval.add('msp-load-update', function () {
$('#msp-load').text("MSP load: " + helper.mspQueue.getLoad().toFixed(2));
}, 100);
helper.interval.add('global_data_refresh', helper.periodicStatusUpdater.run, helper.periodicStatusUpdater.getUpdateInterval(serial.bitrate), false);
}