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:
parent
9594880041
commit
083eee3115
7 changed files with 53 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue