fix: disable camera bridge / preview code to free port 9001 for datalogger

This commit is contained in:
kayos 2026-03-26 14:12:54 -07:00
parent bd0c4cff00
commit 76b177a8e0

View file

@ -1241,7 +1241,10 @@ def system_init():
# =============================================================================
def stop_preview_impl():
def stop_preview_impl(): # DISABLED
pass
def _stop_preview_impl_orig():
"""Stop preview mode — restore normal camera config and restart camera-bridge."""
preview_state["active"] = False
preview_state["started_at"] = None
@ -1261,7 +1264,10 @@ def stop_preview_impl():
logger.info("[preview] stopped, camera-bridge restored")
def start_preview_impl():
def start_preview_impl(): # DISABLED
pass
def _start_preview_impl_orig():
"""Start preview mode — switch camera to preview config, restart camera-bridge.
Auto-stops after PREVIEW_TIMEOUT_SEC seconds."""
# Cancel any existing timer