mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 01:35:23 +03:00
fixes for global status pull handler
This commit is contained in:
parent
3f196a9505
commit
eff3eb2420
6 changed files with 40 additions and 38 deletions
|
@ -18,6 +18,12 @@ helper.interval = (function () {
|
|||
* @returns {{name: *, timer: null, code: *, interval: *, fired: number, paused: boolean}}
|
||||
*/
|
||||
publicScope.add = function (name, code, interval, first) {
|
||||
|
||||
/*
|
||||
* Kill existing interval with this name if exists
|
||||
*/
|
||||
publicScope.remove(name);
|
||||
|
||||
var data = {
|
||||
'name': name,
|
||||
'timer': null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue