We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c21aaf0 commit 412de8dCopy full SHA for 412de8d
internal_filesystem/lib/mpos/ui/__init__.py
@@ -367,9 +367,9 @@ def poweroff_cb(e):
367
print("Power off action...")
368
import sys
369
if sys.platform == "esp32":
370
- #On ESP32, there's no power off but there is a long sleep:
+ #On ESP32, there's no power off but there is a forever sleep
371
import machine
372
- machine.deepsleep(2^32-1) # max deepsleep is ~24.85 days
+ machine.deepsleep() # sleep forever
373
else: # assume unix:
374
lv.deinit() # Deinitialize LVGL (if supported)
375
sys.exit(0)
0 commit comments