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()