camtest: fix internal camera

This commit is contained in:
Thomas Farstrike
2025-05-14 15:09:39 +02:00
parent 6fa0530957
commit cf5291329a
2 changed files with 2 additions and 2 deletions
@@ -1,5 +1,4 @@
import time
import webcam
appscreen = lv.screen_active()
th.disable()
@@ -202,6 +201,7 @@ cam = init_cam()
if not cam:
print("camtest.py: no internal camera found, trying webcam on /dev/video0")
try:
import webcam
cam = webcam.init("/dev/video0") # Initialize webcam with device path
use_webcam = True
except Exception as e: