Fix up reboot logic

This commit is contained in:
Lorenz Meier committed 2014-11-02 22:03:49 +01:00
1 parent 5862f4ffe6
commit 44a2473632
1 file changed
+2
+2
View File
@@ -511,6 +511,8 @@ while True:
up.send_reboot()
# wait for the reboot, without we might run into Serial I/O Error 5
time.sleep(0.5)
# always close the port
up.close()
continue
try: