I2C Baro problems fix #5264

This commit is contained in:
rusefi 2023-04-30 19:16:29 -04:00
parent a1f9553641
commit 689cd6dae5
3 changed files with 6 additions and 2 deletions

View File

@ -143,7 +143,6 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
void setBoardConfigOverrides() { void setBoardConfigOverrides() {
setHellen144LedPins(); setHellen144LedPins();
setupVbatt(); setupVbatt();
setHellenMMbaro();
// todo: do we need this conditional on boardId or not really? // todo: do we need this conditional on boardId or not really?
setHellenMegaEnPin(); setHellenMegaEnPin();
@ -168,6 +167,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->vvtPins[0] = H144_OUT_PWM7; engineConfiguration->vvtPins[0] = H144_OUT_PWM7;
engineConfiguration->vvtPins[1] = H144_OUT_PWM8; engineConfiguration->vvtPins[1] = H144_OUT_PWM8;
setHellenMMbaro();
engineConfiguration->boardUseTempPullUp = true; engineConfiguration->boardUseTempPullUp = true;
engineConfiguration->acSwitch = Gpio::Unassigned; engineConfiguration->acSwitch = Gpio::Unassigned;

View File

@ -62,7 +62,6 @@ void setBoardConfigOverrides() {
setHellen144LedPins(); setHellen144LedPins();
setHellenMegaEnPin(); setHellenMegaEnPin();
setupVbatt(); setupVbatt();
setHellenMMbaro();
setHellenSdCardSpi1(); setHellenSdCardSpi1();
configureHellenMegaAccCS2Pin(); configureHellenMegaAccCS2Pin();
@ -100,6 +99,9 @@ void setBoardDefaultConfiguration() {
setIgnitionPins(); setIgnitionPins();
setHondaK(); setHondaK();
// not override since sometimes we have isues?
setHellenMMbaro();
engineConfiguration->displayLogicLevelsInEngineSniffer = true; engineConfiguration->displayLogicLevelsInEngineSniffer = true;
engineConfiguration->globalTriggerAngleOffset = 663; engineConfiguration->globalTriggerAngleOffset = 663;

View File

@ -270,6 +270,8 @@ enable2ndByteCanID = false
maintainConstantValue = throttlePedalWOTVoltage, { (calibrationMode == @@TsCalMode_PedalMax@@ ) ? calibrationValue : throttlePedalWOTVoltage } maintainConstantValue = throttlePedalWOTVoltage, { (calibrationMode == @@TsCalMode_PedalMax@@ ) ? calibrationValue : throttlePedalWOTVoltage }
maintainConstantValue = throttlePedalSecondaryWOTVoltage, { (calibrationMode == @@TsCalMode_PedalMax@@ ) ? calibrationValue2 : throttlePedalSecondaryWOTVoltage } maintainConstantValue = throttlePedalSecondaryWOTVoltage, { (calibrationMode == @@TsCalMode_PedalMax@@ ) ? calibrationValue2 : throttlePedalSecondaryWOTVoltage }
requiresPowerCycle = lps25BaroSensorScl
requiresPowerCycle = lps25BaroSensorSda
requiresPowerCycle = warningLedPin requiresPowerCycle = warningLedPin
requiresPowerCycle = runningLedPin requiresPowerCycle = runningLedPin
requiresPowerCycle = binarySerialTxPin requiresPowerCycle = binarySerialTxPin