projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for Windows NT machines with non-FTDI serial ports.
[goodfet]
/
client
/
GoodFET.py
diff --git
a/client/GoodFET.py
b/client/GoodFET.py
index
ab6ac30
..
d97fb94
100755
(executable)
--- a/
client/GoodFET.py
+++ b/
client/GoodFET.py
@@
-93,10
+93,13
@@
class GoodFET:
from scanwin32 import winScan;
scan=winScan();
for order,comport,desc,hwid in sorted(scan.comports()):
from scanwin32 import winScan;
scan=winScan();
for order,comport,desc,hwid in sorted(scan.comports()):
- if hwid.index('FTDI')==0:
- port=comport;
- #print "Using FTDI port %s" % port
-
+ try:
+ if hwid.index('FTDI')==0:
+ port=comport;
+ #print "Using FTDI port %s" % port
+ except:
+ #Do nothing.
+ a=1;
self.serialport = serial.Serial(
port,
self.serialport = serial.Serial(
port,