ETB progress

This commit is contained in:
rusefi 2019-04-23 23:20:14 -04:00
parent d3576e3e44
commit 921e493524
1 changed files with 12 additions and 2 deletions

View File

@ -244,6 +244,17 @@ void OutputPin::unregisterOutput(brain_pin_e oldPin, brain_pin_e newPin) {
}
}
static void handleCommandX14(uint16_t index) {
switch (index) {
case 1:
// cmd_test_fuel_pump
fuelPumpBench();
return;
}
}
// todo: this is probably a wrong place for this method now
void executeTSCommand(uint16_t subsystem, uint16_t index) {
scheduleMsg(logger, "IO test subsystem=%d index=%d", subsystem, index);
@ -252,8 +263,7 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
} else if (subsystem == 0x13) {
doRunFuel(index, "300", "4", "400", "3");
} else if (subsystem == 0x14) {
// cmd_test_fuel_pump
fuelPumpBench();
handleCommandX14(index);
} else if (subsystem == 0x15) {
fanBench();
} else if (subsystem == 0x16) {