aboutsummaryrefslogtreecommitdiffstats
path: root/reset.py
diff options
context:
space:
mode:
Diffstat (limited to 'reset.py')
-rwxr-xr-xreset.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/reset.py b/reset.py
index a7447d0..1a4d515 100755
--- a/reset.py
+++ b/reset.py
@@ -13,27 +13,6 @@ ser.setDTR(0)
# toggle DTR
ser.setDTR(1)
-# Some versions of python seem to throw an IOError on this line.
-# I have no idea why and don't have any time to look at it.
-# Just catch it for now.
-#
-# Error msg:
-#
-# Traceback (most recent call last):
-# File "./reset.py", line 15, in <module>
-# ser.setDTR(0)
-# File "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 388, in setDTR
-# fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_DTR_str)
-# IOError: [Errno 84] Invalid or incomplete multibyte or wide character
-
-try:
- ser.setDTR(0)
-except IOError:
- print "IOError caught"
-
# close
ser.close()
-time.sleep(1)
-
-print "Done"