1
0
Fork 0

Update golf-gps.js

master
jeonlab 2024-07-01 13:29:10 -04:00 committed by GitHub
parent 228265ba69
commit 56793614e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ function showPlayData() {
// battery level bar
g.setColor('#000').drawRect(59, H * 2 / 3 - 2, W - 5, H * 2 / 3 + 4);
g.drawRect(58, H * 2 / 3 - 1, W - 4, H * 2 / 3 + 5);
g.setColor(E.getBattery() > 30 ? '#03f' : 'f00').fillRect(60, H * 2 / 3, 60 + E.getBattery() / 100 * (W - 60), H * 2 / 3 + 3);
g.setColor(E.getBattery() > 15 ? '#03f' : '#f00').fillRect(60, H * 2 / 3, 60 + E.getBattery() / 100 * (W - 60), H * 2 / 3 + 3);
// hdop level indicator
if (lastFix.hdop < 5) g.setColor('#0f0').fillRect(60, H / 3, 96, H / 3 + 5);