fix bug with 100% battery

pull/3519/head
Ian Ward 2024-07-23 09:16:11 +01:00
parent ec9bc29295
commit 7e5c67a2b6
1 changed files with 1 additions and 1 deletions

View File

@ -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;