diff --git a/firmware/controllers/bench_test.cpp b/firmware/controllers/bench_test.cpp index 10b9e34713..91386814bc 100644 --- a/firmware/controllers/bench_test.cpp +++ b/firmware/controllers/bench_test.cpp @@ -535,6 +535,8 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) { } void onConfigurationChangeBenchTest() { + if (engineConfiguration->benchTestOnTime == 0) + engineConfiguration->benchTestOnTime = 4; // default value if configuration was not specified if (engineConfiguration->benchTestOffTime < 5) engineConfiguration->benchTestOffTime = 500; // default value if configuration was not specified if (engineConfiguration->benchTestCount < 1) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 321129f3c8..281bdfe7ba 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -1212,9 +1212,9 @@ int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\ bit unused1128 bit unused1129 bit unused1130 - uint8_t autoscale benchTestOffTime;;"ms", 5, 0, 0, 2000, 1 - uint8_t benchTestCount;;"count", 1, 0, 0, 250, 1 - uint8_t autoscale benchTestOnTime;;"ms", 5, 0, 0, 2000, 1 + uint8_t autoscale benchTestOffTime;Time between bench test pulses;"ms", 5, 0, 0, 2000, 1 + uint8_t benchTestCount;How many test bench pulses do you want;"count", 1, 0, 0, 250, 1 + uint8_t autoscale benchTestOnTime;Length of each of the test pulses;"ms", 5, 0, 0, 2000, 1 pin_input_mode_e launchActivatePinMode; Gpio can2TxPin;set_can2_tx_pin X Gpio can2RxPin;set_can2_rx_pin X