From 998d1206851ab9afb841e10478fa1a29a2c93fe2 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 26 Jun 2024 23:29:48 +0200 Subject: [PATCH] [] sixths: broken battery reading broke everything, fix it. --- apps/sixths/sixths.app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sixths/sixths.app.js b/apps/sixths/sixths.app.js index e1c1afbae..935a9e468 100644 --- a/apps/sixths/sixths.app.js +++ b/apps/sixths/sixths.app.js @@ -407,6 +407,7 @@ function loggps(fix) { function hourly() { print("hourly"); let s = ' T'; + let bat = E.getBattery(); if (bat < 25) { s = ' B'; show("Bat "+bat+"%", 60); @@ -421,7 +422,6 @@ function show(msg, timeout) { function fivemin() { print("fivemin"); let s = ' B'; - let bat = E.getBattery(); try { Bangle.getPressure().then((x) => { cur_altitude = x.altitude; cur_temperature = x.temperature; },