mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix: when address is set but no devices connected
This commit is contained in:
parent
3b5582de6e
commit
6d7630cf60
@ -155,6 +155,8 @@ class Camera:
|
||||
return jpeg
|
||||
|
||||
def get_serial_camera_picture(self, should_push):
|
||||
if self.serial_connection is None:
|
||||
return
|
||||
try:
|
||||
if self.serial_connection.in_waiting:
|
||||
jpeg = self.get_next_jpeg_frame()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user