hardware-quality-management/issues/21 hack :(

only:hellen154hyundai
This commit is contained in:
rusefillc 2023-12-14 16:43:25 -05:00
parent 0b3cc98efb
commit 29eb8c5a18
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ void setBoardConfigOverrides() {
engineConfiguration->camInputs[1] = Gpio::H144_IN_D_AUX4;
int16_t hellenBoardId = engine->engineState.hellenBoardId;
if (hellenBoardId == BOARD_ID_VAG121_D) {
// wow something bad has happened to that batch of boards?!
hellenBoardId = BOARD_ID_154HYUNDAI_C;
}
if (hellenBoardId == -1) {
engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CRANK;
engineConfiguration->camInputs[0] = Gpio::H144_IN_CAM;