mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix(linux): serial devices with longer names than 5 getting treated as url (#138)
This commit is contained in:
parent
1010427e3f
commit
17b49f67c0
@ -381,6 +381,7 @@ class CameraWidget:
|
||||
len(values[self.gui_camera_addr]) > 5
|
||||
and "http" not in values[self.gui_camera_addr]
|
||||
and ".mp4" not in values[self.gui_camera_addr]
|
||||
and "/dev" not in values[self.gui_camera_addr]
|
||||
): # If http is not in camera address, add it.
|
||||
self.config.capture_source = f"http://{values[self.gui_camera_addr]}/"
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user