diff --git a/main.py b/main.py index 03d92f458475b854e8fe19d99e525e82ca24b8b9..9f9725c2dc19911275c02f7c867627ca4fc71c87 100644 --- a/main.py +++ b/main.py @@ -22,9 +22,11 @@ try: except RuntimeError as e: print(f' connect error: {e}') write_err(f' connect error: {e}') - #Likely a network oops, try starting again + #Likely a network oops uos.umount("/sd") - machine.soft_reset() + #machine.soft_reset() + #Don't start right away + inky_frame.sleep_for(60) try: nc = uNextcloud.uNextcloud(NEXTCLOUD_URL) @@ -33,9 +35,11 @@ try: except OSError as e: print(f' nextcloud error: {e}') write_err(f' nextcloud error: {e}') - #Likely a network oops, try starting again + #Likely a network oops uos.umount("/sd") - machine.soft_reset() + #machine.soft_reset() + #Don't start right away + inky_frame.sleep_for(60) inky_frame.set_time()