From fbae73828f6ec625f18284d75fff58d40500a71a Mon Sep 17 00:00:00 2001 From: mahmamdouh Date: Wed, 11 Feb 2026 19:48:02 +0100 Subject: [PATCH] update --- run_test.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/run_test.py b/run_test.py index cc28374..0f4f10c 100644 --- a/run_test.py +++ b/run_test.py @@ -3,8 +3,14 @@ import time from hil_lib import SCD30_HIL_Lib # Device paths from your environment -EMULATOR = 'COM11'#'/dev/i2c_emulator' -TARGET = 'COM10'#'/dev/esp_sensor_test' +Device = 'HIL' + +if Device == 'PC': + EMULATOR = 'COM11'#'/dev/i2c_emulator' + TARGET = 'COM10'#'/dev/esp_sensor_test' +elif Device == 'HIL': + EMULATOR = '/dev/i2c_emulator' + TARGET = '/dev/esp_sensor_test' LOG_FILE = 'hil_validation_results.csv' # Initialize HIL