From be5593982965b22518c0605ef951574b4b97c871 Mon Sep 17 00:00:00 2001 From: AJM Date: Wed, 9 Jun 2010 22:25:14 -0400 Subject: added a somewhat broken version of the reset magic number scheme. current version gets stuck in the isr somewhere. not sure why or where. must debug. --- support/scripts/reset.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'support/scripts') diff --git a/support/scripts/reset.py b/support/scripts/reset.py index 7594845..90ff331 100755 --- a/support/scripts/reset.py +++ b/support/scripts/reset.py @@ -7,16 +7,11 @@ try: ser = serial.Serial('/dev/ttyACM0', baudrate=115200) ser.open() - # pull dtr and rts low - ser.setRTS(0) - ser.setDTR(0) - # toggle DTR ser.setDTR(1) ser.setDTR(0) - programDelay = pack("b",35) - ser.write(programDelay) + ser.write("1EAF") # close ser.close() -- cgit v1.2.3