master
Erik Andresen 2025-05-04 10:19:48 +02:00
parent 359a75f5c2
commit 176508ac34
1 changed files with 0 additions and 14 deletions

View File

@ -8,18 +8,6 @@
return !(pressure == undefined || pressure <= 0);
};
const calculcate3hAveragePressure = () => {
if (history3 != undefined && history3.length > 0) {
let sum = 0;
for (let i = 0; i < history3.length; i++) {
sum += history3[i].p;
}
threeHourAvrPressure = sum / history3.length;
} else {
threeHourAvrPressure = undefined;
}
};
const handlePressureValue = (pressure) => {
if (pressure == undefined || pressure <= 0) {
return;
@ -46,8 +34,6 @@
// write data to storage
require('Storage').writeJSON(LOG_FILE, history3);
calculcate3hAveragePressure();
};
const barometerPressureHandler = (e) => {