mirror of https://github.com/espruino/BangleApps
Fix exception
parent
d34fe36331
commit
233b0dc8fc
|
@ -6,3 +6,4 @@
|
||||||
0.05: Fix warning calculation
|
0.05: Fix warning calculation
|
||||||
Show difference of last measurement to pressure average of the the last three hours in the widget
|
Show difference of last measurement to pressure average of the the last three hours in the widget
|
||||||
Only use valid pressure values
|
Only use valid pressure values
|
||||||
|
0.06: Fix exception
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "widbaroalarm",
|
"id": "widbaroalarm",
|
||||||
"name": "Barometer Alarm Widget",
|
"name": "Barometer Alarm Widget",
|
||||||
"shortName": "Barometer Alarm",
|
"shortName": "Barometer Alarm",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "A widget that can alarm on when the pressure reaches defined thresholds.",
|
"description": "A widget that can alarm on when the pressure reaches defined thresholds.",
|
||||||
"icon": "widget.png",
|
"icon": "widget.png",
|
||||||
"type": "widget",
|
"type": "widget",
|
||||||
|
|
|
@ -231,7 +231,6 @@ function getPressureValue() {
|
||||||
if (isValidPressureValue(pressure)) {
|
if (isValidPressureValue(pressure)) {
|
||||||
currentPressures.unshift(pressure);
|
currentPressures.unshift(pressure);
|
||||||
median = currentPressures.slice().sort();
|
median = currentPressures.slice().sort();
|
||||||
}
|
|
||||||
|
|
||||||
if (median.length > 10) {
|
if (median.length > 10) {
|
||||||
var mid = median.length >> 1;
|
var mid = median.length >> 1;
|
||||||
|
@ -242,6 +241,7 @@ function getPressureValue() {
|
||||||
handlePressureValue(medianPressure);
|
handlePressureValue(medianPressure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(function() { turnOff(); }, 30000);
|
setTimeout(function() { turnOff(); }, 30000);
|
||||||
|
|
Loading…
Reference in New Issue