0.04: Fixes after regression in 0.03 (fix #3257)
parent
89898f1ce5
commit
5d5c307b9d
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: First release
|
0.01: First release
|
||||||
0.02: Fixed settings changes are actually reflected now and old values are strikethrough
|
0.02: Fixed settings changes are actually reflected now and old values are strikethrough
|
||||||
0.03: Minor code improvements
|
0.03: Minor code improvements
|
||||||
|
0.04: Fix after regression in 0.03
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"shortName":"BG Widget",
|
"shortName":"BG Widget",
|
||||||
"icon": "screenshot.png",
|
"icon": "screenshot.png",
|
||||||
"screenshots": [{"url":"screenshot.png"}],
|
"screenshots": [{"url":"screenshot.png"}],
|
||||||
"version": "0.03",
|
"version": "0.04",
|
||||||
"type": "widget",
|
"type": "widget",
|
||||||
"supports": ["BANGLEJS", "BANGLEJS2"],
|
"supports": ["BANGLEJS", "BANGLEJS2"],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,8 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// turn the arrow thanks to (https://forum.espruino.com/conversations/344607/)
|
// turn the arrow thanks to (https://forum.espruino.com/conversations/344607/)
|
||||||
/*
|
|
||||||
const p180 = Math.PI / 180;
|
const p180 = Math.PI / 180;
|
||||||
|
/*
|
||||||
// a is defined above
|
// a is defined above
|
||||||
var r = 21;
|
var r = 21;
|
||||||
var x = r * Math.sin(a * p180);
|
var x = r * Math.sin(a * p180);
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
console.log(settings.unitIsMmol.toString());
|
console.log(settings.unitIsMmol.toString());
|
||||||
loadVals();
|
loadVals();
|
||||||
|
|
||||||
outpt = getBG(storedData.bg);
|
let outpt = getBG(storedData.bg);
|
||||||
|
|
||||||
if (outpt === null) { // this means no value has been received yet
|
if (outpt === null) { // this means no value has been received yet
|
||||||
outpt = "BG";
|
outpt = "BG";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue