Bench-testing for ALL assigned output pins #1758

This commit is contained in:
rusefi 2020-09-08 17:41:32 -04:00
parent 5b7b051448
commit 4d3ba4850c
1 changed files with 23 additions and 12 deletions

View File

@ -185,6 +185,10 @@ void acRelayBench(void) {
pinbench("0", "1000", "100", "1", &enginePins.acRelay, CONFIG(acRelayPin));
}
void mainRelayBench(void) {
pinbench("0", "1000", "100", "1", &enginePins.mainRelay, CONFIG(mainRelayPin));
}
void fuelPumpBench(void) {
fuelPumpBenchExt("3000");
}
@ -247,17 +251,30 @@ private:
static BenchController instance;
static void handleBenchCategory(uint16_t index) {
// cmd_test_check_engine_light
milBench();
switch(index) {
case CMD_TS_BENCH_MAIN_RELAY:
mainRelayBench();
return;
case CMD_TS_BENCH_FUEL_PUMP:
// cmd_test_fuel_pump
fuelPumpBench();
return;
case CMD_TS_BENCH_STARTER_ENABLE_RELAY:
starterRelayBench();
return;
case CMD_TS_BENCH_CHECK_ENGINE_LIGHT:
// cmd_test_check_engine_light
milBench();
return;
case CMD_TS_BENCH_AC_COMPRESSOR_RELAY:
acRelayBench();
return;
}
}
static void handleCommandX14(uint16_t index) {
switch (index) {
case 1:
// cmd_test_fuel_pump
fuelPumpBench();
return;
case 2:
grabTPSIsClosed();
return;
@ -277,18 +294,12 @@ static void handleCommandX14(uint16_t index) {
requestTLE8888initialization();
#endif
return;
case 9:
acRelayBench();
return;
case 0xA:
// cmd_write_config
#if EFI_INTERNAL_FLASH
writeToFlashNow();
#endif /* EFI_INTERNAL_FLASH */
return;
case 0xB:
starterRelayBench();
return;
case 0xD:
engine->directSelfStimulation = true;
return;