Skip to content

Commit

Permalink
Fixed issue on addressing in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ddetommaso committed Jun 19, 2020
1 parent 22d98dc commit 7f0ed18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tobiiglassesctrl/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ def __discover_device__(self):
jdata = json.loads(data.decode('utf-8'))
logging.debug("From: " + address[0] + " " + str(data))
logging.debug("Tobii Pro Glasses found with address: [%s]" % address[0])
return (jdata, address[0])
addr = address[0]
if sys.version_info.major == 3 and sys.version_info.minor >= 8:
addr = address[0] + '%' + if_name
return (jdata, addr)
except:
logging.debug("No device found on interface %s" % if_name)

Expand Down

0 comments on commit 7f0ed18

Please sign in to comment.