Merge pull request #28 from prehensile/master

added /dev/tty.usbmodemTiLDA* to glob paths in find_tty
andrejusk/bday
Marek Ventur 2018-08-30 17:50:06 +01:00 committed by GitHub
commit b374986088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def soft_reset(args, verbose = True):
def find_tty():
# Todo: find solution for windows, test in linux
for pattern in ['/dev/ttyACM*', '/dev/tty.usbmodem*']:
for pattern in ['/dev/ttyACM*', '/dev/tty.usbmodemTiLDA*', '/dev/tty.usbmodem*']:
for path in glob.glob(pattern):
return path
print("Couldn't find badge tty - Please make it's plugged in and reset it if necessary")