Fix potential crash
parent
6037e0323f
commit
0dae17cf70
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: Initial version
|
0.01: Initial version
|
||||||
0.02: Do not warn multiple times for the same exceedance
|
0.02: Do not warn multiple times for the same exceedance
|
||||||
|
0.03: Fix crash
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "widbaroalarm",
|
"id": "widbaroalarm",
|
||||||
"name": "Barometer Alarm Widget",
|
"name": "Barometer Alarm Widget",
|
||||||
"shortName": "Barometer Alarm",
|
"shortName": "Barometer Alarm",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"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",
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
saveSetting("lastHighWarningTs", 0);
|
saveSetting("lastHighWarningTs", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!alreadyWarned) {
|
if (history3.length > 0 && !alreadyWarned) {
|
||||||
// 3h change detection
|
// 3h change detection
|
||||||
const drop3halarm = setting("drop3halarm");
|
const drop3halarm = setting("drop3halarm");
|
||||||
const raise3halarm = setting("raise3halarm");
|
const raise3halarm = setting("raise3halarm");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue