mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
Convert to CommonJS Modules
This commit is contained in:
parent
7df8253099
commit
91f1699659
100 changed files with 9685 additions and 3735 deletions
|
@ -1,12 +1,11 @@
|
|||
'use s';
|
||||
'use strict';
|
||||
|
||||
var helper = helper || {};
|
||||
|
||||
/**
|
||||
* Simple analyzer that returns frequency of events using 5s buffer
|
||||
* Usage: register periodic events with 'put', then call 'get' to get results
|
||||
*/
|
||||
helper.eventFrequencyAnalyzer = (function () {
|
||||
var eventFrequencyAnalyzer = (function () {
|
||||
|
||||
var privateScope = {},
|
||||
publicScope = {},
|
||||
|
@ -74,4 +73,6 @@ helper.eventFrequencyAnalyzer = (function () {
|
|||
privateScope.intervalHandler = setInterval(publicScope.analyze, bufferPeriod);
|
||||
|
||||
return publicScope;
|
||||
})();
|
||||
})();
|
||||
|
||||
module.exports = eventFrequencyAnalyzer;
|
Loading…
Add table
Add a link
Reference in a new issue