From f3264f557489c7b38c99dc0a0d98234cfb4496b8 Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 21 Feb 2011 02:34:03 +0000 Subject: [PATCH] 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 --- client/GoodFET.py | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.20.1