mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Report logic condiotion activation status
This commit is contained in:
parent
e3b89453e8
commit
9c627f7445
9 changed files with 109 additions and 1 deletions
25
js/logicConditionsStatus.js
Normal file
25
js/logicConditionsStatus.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
'use strict';
|
||||
|
||||
let LogicConditionsStatus = function () {
|
||||
|
||||
let self = {},
|
||||
data = [];
|
||||
|
||||
self.set = function (condition, value) {
|
||||
data[condition] = value;
|
||||
}
|
||||
|
||||
self.get = function (condition) {
|
||||
if (typeof data[condition] !== 'undefined') {
|
||||
return data[condition];
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
self.getAll = function() {
|
||||
return data;
|
||||
}
|
||||
|
||||
return self;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue