From d44f856baffd72742d2287f75df5c2c5dff07a73 Mon Sep 17 00:00:00 2001 From: AJM Date: Fri, 21 May 2010 19:09:35 -0400 Subject: Finalized the libmaple changes required by newboot. Added setupUSB() to wirish init this involved some some changes to copy-to-ide, WProgram.h, and the makefile. Separated the reset.py from the wait.py so that the program closes the serial port correctly. --- reset.py | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'reset.py') 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 -# 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" -- cgit v1.2.3