1
0
Fork 0
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:
Andi Kanzler 2024-02-26 11:58:56 -03:00
parent 7df8253099
commit 91f1699659
100 changed files with 9685 additions and 3735 deletions

View file

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