1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

Backend for getting logic conditions from FC

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-03-10 14:39:32 +01:00
parent 3c7cf5fc47
commit d6ded2404e
8 changed files with 166 additions and 5 deletions

View file

@ -0,0 +1,25 @@
'use strict';
let LogicConditionsCollection = function () {
let self = {},
data = [];
self.put = function (element) {
data.push(element);
};
self.get = function () {
return data;
};
self.flush = function () {
data = [];
};
self.getCount = function () {
return data.length
}
return self;
};