From: travisutk Date: Mon, 21 Feb 2011 02:34:03 +0000 (+0000) Subject: Added /dev/ttyU0 to the glob list for OpenBSD. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=f3264f557489c7b38c99dc0a0d98234cfb4496b8 Added /dev/ttyU0 to the glob list for OpenBSD. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@928 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFET.py b/client/GoodFET.py index e60c31a..df26c85 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -90,6 +90,10 @@ class GoodFET: 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();