Fix fan bench (#2198)
* fix fan, complain if missing bench mode * more complaining about unexpected codes * unused
This commit is contained in:
parent
d0090cb5d8
commit
5f1a13aed4
|
@ -290,8 +290,12 @@ static void handleBenchCategory(uint16_t index) {
|
||||||
case CMD_TS_BENCH_AC_COMPRESSOR_RELAY:
|
case CMD_TS_BENCH_AC_COMPRESSOR_RELAY:
|
||||||
acRelayBench();
|
acRelayBench();
|
||||||
return;
|
return;
|
||||||
|
case CMD_TS_BENCH_FAN_RELAY:
|
||||||
|
fanBench();
|
||||||
|
return;
|
||||||
|
default:
|
||||||
|
firmwareError(OBD_PCM_Processor_Fault, "Unexpected bench function %d", index);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handleCommandX14(uint16_t index) {
|
static void handleCommandX14(uint16_t index) {
|
||||||
|
@ -347,6 +351,8 @@ static void handleCommandX14(uint16_t index) {
|
||||||
case 0x12:
|
case 0x12:
|
||||||
widebandUpdatePending = true;
|
widebandUpdatePending = true;
|
||||||
return;
|
return;
|
||||||
|
default:
|
||||||
|
firmwareError(OBD_PCM_Processor_Fault, "Unexpected bench x14 %d", index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,7 +383,7 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CMD_TS_INJECTOR_CATEGORY:
|
case CMD_TS_INJECTOR_CATEGORY:
|
||||||
if (!running) {
|
if (!running) {
|
||||||
doRunFuel(index, "300", "4", "400", "3");
|
doRunFuel(index, "300", "4", "400", "3");
|
||||||
}
|
}
|
||||||
|
@ -398,11 +404,6 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
|
||||||
case CMD_TS_X14:
|
case CMD_TS_X14:
|
||||||
handleCommandX14(index);
|
handleCommandX14(index);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CMD_TS_X15:
|
|
||||||
fanBench();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case CMD_TS_BENCH_CATEGORY:
|
case CMD_TS_BENCH_CATEGORY:
|
||||||
handleBenchCategory(index);
|
handleBenchCategory(index);
|
||||||
break;
|
break;
|
||||||
|
@ -452,6 +453,8 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
|
||||||
rebootNow();
|
rebootNow();
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
firmwareError(OBD_PCM_Processor_Fault, "Unexpected bench subsystem %d %d", subsystem, index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1748,7 +1748,6 @@ end_struct
|
||||||
#define CMD_TS_IGNITION_CATEGORY 18
|
#define CMD_TS_IGNITION_CATEGORY 18
|
||||||
#define CMD_TS_INJECTOR_CATEGORY 19
|
#define CMD_TS_INJECTOR_CATEGORY 19
|
||||||
#define CMD_TS_X14 20
|
#define CMD_TS_X14 20
|
||||||
#define CMD_TS_X15 21
|
|
||||||
// 0x16
|
// 0x16
|
||||||
#define CMD_TS_BENCH_CATEGORY 22
|
#define CMD_TS_BENCH_CATEGORY 22
|
||||||
#define CMD_TS_X17 23
|
#define CMD_TS_X17 23
|
||||||
|
|
Loading…
Reference in New Issue