fix(linux): serial devices with longer names than 5 getting treated as url (#138)

This commit is contained in:
DeltaNeverUsed 2025-03-29 20:55:23 +01:00 committed by GitHub
parent 1010427e3f
commit 17b49f67c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: