From 811e1897425ed2f99faed822885ca60f8c5896a1 Mon Sep 17 00:00:00 2001 From: VALLONGOL Date: Tue, 3 Feb 2026 10:47:30 +0100 Subject: [PATCH] aggiunta la flag per abilitare la comunicazione con la seriale ausiliaria --- TestEnvironment/scripts/GRIFO_M_PBIT.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/TestEnvironment/scripts/GRIFO_M_PBIT.py b/TestEnvironment/scripts/GRIFO_M_PBIT.py index 96d5015..aa8d25d 100644 --- a/TestEnvironment/scripts/GRIFO_M_PBIT.py +++ b/TestEnvironment/scripts/GRIFO_M_PBIT.py @@ -71,6 +71,10 @@ TELLBACK_VERIFY_STEP_SEC = 0.5 # Poll step for tellback verification TELLBACK_POST_SET_DELAY_SEC = 2.0 # Delay after setting STBY/SILENCE to allow radar to update tellbacks STBY_POST_UNSET_DELAY_SEC = 2.0 # Delay after removing STBY to allow radar to exit standby +# Global flag: enable auxiliary serial helper by default (can be overridden by operator) +# Set to False to disable auxiliary serial communication from tests. +ENABLE_AUX_SERIAL = True + # ==================== # B8 DRILL-DOWN CONFIGURATION # ==================== @@ -1595,8 +1599,8 @@ def test_proc(): # Prepare radar for operational target acquisition (best-effort) try: logging.info("Setting radar to operational mode before target test (best-effort)") - # Execute auxiliary serial sequence to prepare radar (if configured) - if send_serial_sequence: + # Execute auxiliary serial sequence to prepare radar (if configured and enabled) + if send_serial_sequence and ENABLE_AUX_SERIAL: try: logging.info('Executing auxiliary serial sequence to prepare radar') send_serial_sequence()