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