Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 23906af

Browse files
committed
Charging status bugfix
1 parent e1f8c26 commit 23906af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

esp32/modules/splash.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ def draw_home(do_BPP):
4747
ugfx.box(42,7,2,8,ugfx.BLACK)
4848
ugfx.area(3,3,width,16,ugfx.BLACK)
4949

50-
51-
if badge.battery_charge_status():
52-
bat_status = 'Charging...'
53-
elif vBatt > 100:
54-
bat_status = str(round(vBatt/1000, 2)) + 'v'
50+
if vBatt > 500:
51+
if badge.battery_charge_status():
52+
bat_status = 'Charging...'
53+
else:
54+
bat_status = str(round(vBatt/1000, 2)) + 'v'
5555
else:
5656
bat_status = 'No battery'
5757

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy