I2C Baro problems #5264
This commit is contained in:
parent
01fa6ad4f1
commit
a1f9553641
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue