(fix) Fix bug where we spam state

This commit is contained in:
Benjamin Evans committed 2025-01-29 17:55:00 -06:00
1 parent bc5734b5e1
commit c15d6871d0
2 files changed
+1 -4

No files matched your search

-3
View File
@@ -133,10 +133,7 @@ class Camera:
if self.vft_camera is not None:
self.vft_camera.close()
else:
# We created the camera earlier, just open it.
# If the camera is already open it don't spam it!!
if self.cancellation_event.wait(WAIT_TIME):
return
if (not self.vft_camera.is_open):
self.vft_camera.open()
should_push = False
+1 -1
View File
@@ -473,7 +473,7 @@ class ViveTracker:
except Exception:
return False
else:
return "HTC Multimedia Camera" in device_name
return "HTC Multimedia Camera" in str(device_name)
def dispose(self: 'ViveTracker') -> None:
"""Dispose of tracker.