mirror of https://github.com/espruino/BangleApps
fix bug with 100% battery
parent
ec9bc29295
commit
7e5c67a2b6
|
@ -63,7 +63,7 @@
|
|||
// Draw battery box
|
||||
let drawBattery = function drawBattery() {
|
||||
// Round battery up to 10% interval
|
||||
let battery = (Math.floor(E.getBattery()/10)+1)/10;
|
||||
let battery = Math.min((Math.floor(E.getBattery()/10)+1)/10, 1);
|
||||
|
||||
// Maximum battery box
|
||||
let batterySize = 30;
|
||||
|
|
Loading…
Reference in New Issue