parent
c4cbdf0d77
commit
be0bbf3dc8
|
@ -286,8 +286,6 @@ static void initTemperatureCurve(float *bins, float *values, int size, float def
|
|||
void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) {
|
||||
efiAssertVoid(OBD_PCM_Processor_Fault, engineConfiguration != NULL, "ec NULL");
|
||||
memset(engineConfiguration, 0, sizeof(engine_configuration_s));
|
||||
|
||||
|
||||
// Now that GPIO_UNASSIGNED == 0 we do not really need explicit zero assignments since memset above does that
|
||||
// todo: migrate 'EFI_ADC_NONE' to '0' and eliminate the need in this method altogether
|
||||
for (int i = 0; i < FSIO_ANALOG_INPUT_COUNT ; i++) {
|
||||
|
@ -311,6 +309,7 @@ void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) {
|
|||
/* this breaks unit tests lovely TODO: fix this?
|
||||
engineConfiguration->tps1_1AdcChannel = EFI_ADC_NONE;
|
||||
*/
|
||||
|
||||
engineConfiguration->tps2_1AdcChannel = EFI_ADC_NONE;
|
||||
engineConfiguration->auxFastSensor1_adcChannel = EFI_ADC_NONE;
|
||||
engineConfiguration->acSwitchAdc = EFI_ADC_NONE;
|
||||
|
@ -324,6 +323,7 @@ void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) {
|
|||
engineConfiguration->clutchDownPinMode = PI_PULLUP;
|
||||
engineConfiguration->clutchUpPinMode = PI_PULLUP;
|
||||
engineConfiguration->brakePedalPinMode = PI_PULLUP;
|
||||
|
||||
}
|
||||
|
||||
void setDefaultBasePins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
|
|
Loading…
Reference in New Issue