You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#TOBII_DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S+%f'#(Tobii Glasses controller uses Format %d/%m/%Y %H:%M:%S (this datetime format causes a crash if controller is used)
41
-
TOBII_DATETIME_FORMAT='%d/%m/%Y %H:%M:%S'
45
+
TOBII_DATETIME_FORMAT='%Y-%m-%dT%H:%M:%S+%f'
46
+
TOBII_DATETIME_FORMAT_HUMREAD='%d/%m/%Y %H:%M:%S'
42
47
43
48
classTobiiGlassesController():
44
49
@@ -109,6 +114,10 @@ def __disconnect__(self):
109
114
returnTrue
110
115
111
116
def__discover_device__(self):
117
+
ifTOBII_DISCOVERY_ALLOWED==False:
118
+
logging.error("Device discovery is not available due to a missing dependency (netifaces)")
119
+
exit(1)
120
+
112
121
logging.debug("Looking for a Tobii Pro Glasses 2 device ...")
0 commit comments