aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xreset.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/reset.py b/reset.py
index ae5d74b..e4d0e99 100755
--- a/reset.py
+++ b/reset.py
@@ -4,14 +4,7 @@ import serial
import os
try:
- highest = 0
- # this totally won't work on Mac OSX! /dev/ttySOMETHINGELSE?
- for f in filter(lambda x: x.startswith('ttyACM'), os.listdir('/dev/')):
- if (int(f[6:]) > highest):
- highest = int(f[6:])
-
- print "Trying /dev/ttyACM%d..." % highest
- ser = serial.Serial('/dev/ttyACM%d' % highest, baudrate=115200)
+ ser = serial.Serial('/dev/maple', baudrate=115200)
ser.open()
# pull dtr and rts low