I2C Baro problems #5264

This commit is contained in:
rusefi 2023-04-30 19:14:21 -04:00
parent 01fa6ad4f1
commit a1f9553641
1 changed files with 5 additions and 4 deletions

View File

@ -103,10 +103,6 @@ void setBoardConfigOverrides() {
setHellenMegaEnPin();
setupVbatt();
int16_t hellenBoardId = engine->engineState.hellenBoardId;
if (hellenBoardId == BOARD_ID_2chan_e || hellenBoardId == BOARD_ID_2chan_f) {
// todo: flip that condition to check for "if not old board"
setHellenMMbaro();
}
// rev.D uses SPI1 pins for CAN2, but rev.E and later uses SPI1 for SD-card
if (hellenBoardId != BOARD_ID_2chan_d) {
@ -129,6 +125,11 @@ void setBoardDefaultConfiguration() {
setInjectorPins();
setIgnitionPins();
if (hellenBoardId == BOARD_ID_2chan_e || hellenBoardId == BOARD_ID_2chan_f) {
// todo: flip that condition to check for "if not old board"
setHellenMMbaro();
}
engineConfiguration->boardUseTempPullUp = true;
engineConfiguration->acSwitch = Gpio::Unassigned;