Skip to content

Commit 542b659

Browse files
committed
More fixes :D
1 parent 86e35a7 commit 542b659

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

esp32/modules/installer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def list_categories():
149149
except:
150150
draw_msg('Failed!')
151151
draw_msg('Returning to launcher :(')
152-
appglue.start_app('launcher')
152+
appglue.start_app('launcher', False)
153153

154154
f.close()
155155
draw_msg('Done!')
@@ -161,7 +161,7 @@ def list_categories():
161161
ugfx.input_attach(ugfx.JOY_UP, lambda pushed: ugfx.flush() if pushed else 0)
162162
ugfx.input_attach(ugfx.JOY_DOWN, lambda pushed: ugfx.flush() if pushed else 0)
163163
ugfx.input_attach(ugfx.BTN_A, select_category)
164-
ugfx.input_attach(ugfx.BTN_B, lambda pushed: appglue.start_app("launcher") if pushed else 0)
164+
ugfx.input_attach(ugfx.BTN_B, lambda pushed: appglue.start_app("launcher", False) if pushed else 0)
165165
ugfx.input_attach(ugfx.BTN_START, lambda pushed: appglue.start_app("") if pushed else 0)
166166

167167
ugfx.clear(ugfx.WHITE)
@@ -172,8 +172,8 @@ def list_categories():
172172
for category in categories:
173173
options.add_item("%s (%d) >" % (category["name"], category["eggs"]))
174174

175-
ugfx.string_box(148,0,148,26, "Hatchery", "Roboto_BlackItalic24", ugfx.BLACK, ugfx.justifyCenter)
176175
text.text("Install or update eggs from the hatchery here\n\n\n\n")
176+
ugfx.string_box(148,0,148,26, "Hatchery", "Roboto_BlackItalic24", ugfx.BLACK, ugfx.justifyCenter)
177177
ugfx.line(148, 78, 296, 78, ugfx.BLACK)
178178
ugfx.string_box(148,78,148,18, " A: Open catergory", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft)
179179
ugfx.string_box(148,92,148,18, " B: Return to home", "Roboto_Regular12", ugfx.BLACK, ugfx.justifyLeft)
@@ -185,6 +185,6 @@ def list_categories():
185185

186186
if not connectWiFi():
187187
draw_msg('Returning to launcher :(')
188-
appglue.start_app('launcher')
188+
appglue.start_app('launcher', False)
189189
else:
190190
list_categories()

esp32/modules/splash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def draw_home(do_BPP):
4848
ugfx.area(3,3,width,16,ugfx.BLACK)
4949

5050
if vBatt > 500:
51-
if badge.battery_charge_status():
51+
if badge.battery_charge_status() and badge.usb_volt_sense() > 4000:
5252
bat_status = 'Charging...'
5353
else:
5454
bat_status = str(round(vBatt/1000, 2)) + 'v'

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