From c93bf6c6206f7a20886f74385f6bb2a27961481c Mon Sep 17 00:00:00 2001 From: peter-pycom <61411318+peter-pycom@users.noreply.github.com> Date: Fri, 17 Sep 2021 14:36:55 +0200 Subject: [PATCH] give uart some time to finish the print()'s --- shields/shield_2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shields/shield_2.py b/shields/shield_2.py index 8fb74e0..854b162 100644 --- a/shields/shield_2.py +++ b/shields/shield_2.py @@ -157,6 +157,7 @@ def pretty_wake_reason(): print("button was tapped") blink(0x100600) # orange print("put pycoproc to sleep and turn pycom module off for", round(sleep_time_s/60,1), "minutes") + time.sleep(0.1) # give uart some time to finish the print()'s pycoproc.setup_sleep(sleep_time_s) pycoproc.go_to_sleep()