Added /dev/ttyU0 to the glob list for OpenBSD.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Mon, 21 Feb 2011 02:34:03 +0000 (02:34 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Mon, 21 Feb 2011 02:34:03 +0000 (02:34 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@928 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFET.py

index e60c31a..df26c85 100755 (executable)
@@ -90,6 +90,10 @@ class GoodFET:
             glob_list = glob.glob("/dev/ttyUSB*");
             if len(glob_list) > 0:
                 port = glob_list[0];
             glob_list = glob.glob("/dev/ttyUSB*");
             if len(glob_list) > 0:
                 port = glob_list[0];
+        if port is None:
+            glob_list = glob.glob("/dev/ttyU0");
+            if len(glob_list) > 0:
+                port = glob_list[0];
         if os.name=='nt':
             from scanwin32 import winScan;
             scan=winScan();
         if os.name=='nt':
             from scanwin32 import winScan;
             scan=winScan();