fix: serial cam crash on first app launch

This commit is contained in:
Prohurtz 2023-11-19 16:41:48 -06:00
parent ceb320115a
commit cfe7c73c44
2 changed files with 3 additions and 3 deletions

View File

@ -83,8 +83,8 @@ class Camera:
should_push = True
# If things aren't open, retry until they are. Don't let read requests come in any earlier
# than this, otherwise we can deadlock ourselves.
if self.config.capture_source != None and self.config.capture_source != "":
if self.config.capture_source != None and self.config.capture_source != "" and len(self.config.capture_source) > 3:
self.current_capture_source = self.config.capture_source
if "COM" in str(self.current_capture_source):
if (
self.serial_connection is None

View File

@ -30,7 +30,7 @@ SETTINGS_RADIO_NAME = "-SETTINGSRADIO-"
ALGO_SETTINGS_RADIO_NAME = "-ALGOSETTINGSRADIO-"
page_url = "https://github.com/RedHawk989/EyeTrackVR/releases/latest"
appversion = "EyeTrackApp 0.2.0 BETA 8"
appversion = "EyeTrackApp 0.2.0 BETA 9"
def main():