Skip to content

Commit 0f9b2f3

Browse files
committed
Replaced BPP with normal sleep for now.
1 parent e535046 commit 0f9b2f3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

esp32/modules/splash.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ def power_countdown_callback(tmr):
5757
if requestedStandbyTime>0:
5858
if enableBpp:
5959
print("[PM] BPP for "+str(round(timeUntilNextTick/60))+" minutes.")
60-
appglue.start_bpp(round(requestedStandbyTime/60)) #BPP needs time in minutes
60+
#appglue.start_bpp(round(requestedStandbyTime/60)) #BPP needs time in minutes
61+
deepsleep.start_sleeping(requestedStandbyTime*1000)
6162
else:
6263
print("[PM] Sleep for "+str(round())+" seconds.")
63-
deepsleep.start_sleeping(requestedStandbyTime*1000)
64+
deepsleep.start_sleeping(requestedStandbyTime*1000) #Sleep needs time in milliseconds
6465
else:
6566
print("[PM] BPP forever.")
66-
appglue.start_bpp(-1)
67+
#appglue.start_bpp(-1)
68+
deepsleep.start_sleeping()
6769

6870
# Graphics
6971

@@ -298,7 +300,8 @@ def splash_input_init():
298300
badge.nvs_set_u8('badge', 'setup.state', 3)
299301
otaAvailable = splash_ota_check()
300302
else: # Normal boot
301-
print("[SPLASH] Normal boot...")
303+
print("[SPLASH] Normal boot... ")
304+
print("RESET CAUSE: "+str(machine.reset_cause()))
302305
if (machine.reset_cause() != machine.DEEPSLEEP_RESET):
303306
print("... from reset: checking for ota update")
304307
otaAvailable = splash_ota_check()

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