1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2017-01-18 20:20:26 +01:00
parent 3f196a9505
commit eff3eb2420
6 changed files with 40 additions and 38 deletions

View file

@ -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,