aboutsummaryrefslogtreecommitdiff
path: root/Tools/px_uploader.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/px_uploader.py')
-rwxr-xr-xTools/px_uploader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py
index ea2f64639..8a89fdf06 100755
--- a/Tools/px_uploader.py
+++ b/Tools/px_uploader.py
@@ -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: