From 76b177a8e0e8595158f324b2c830e8dc2e70d979 Mon Sep 17 00:00:00 2001 From: kayos Date: Thu, 26 Mar 2026 14:12:54 -0700 Subject: [PATCH] fix: disable camera bridge / preview code to free port 9001 for datalogger --- services/adacam-odc/adacam_odc.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/services/adacam-odc/adacam_odc.py b/services/adacam-odc/adacam_odc.py index 505e446..57f4979 100644 --- a/services/adacam-odc/adacam_odc.py +++ b/services/adacam-odc/adacam_odc.py @@ -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