Update widget.js
parent
79dcbd7fd1
commit
0875f516a1
|
|
@ -20,11 +20,7 @@
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
let batt=E.getBattery();
|
let batt=E.getBattery();
|
||||||
try {
|
|
||||||
data = require("smartbatt").get();
|
data = require("smartbatt").get();
|
||||||
} catch (e) {
|
|
||||||
data.hrsLeft = 0;
|
|
||||||
}
|
|
||||||
let hrsLeft=data.hrsLeft;
|
let hrsLeft=data.hrsLeft;
|
||||||
let days = hrsLeft / 24;
|
let days = hrsLeft / 24;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue