auto-sync
This commit is contained in:
parent
183fbbc2e2
commit
36978c9626
|
@ -179,6 +179,8 @@ void setCommonNTCSensor(ThermistorConf *thermistorConf) {
|
|||
}
|
||||
|
||||
void initThermistors(Engine *engine) {
|
||||
efiAssertVoid(engine!=NULL, "e NULL initThermistors");
|
||||
efiAssertVoid(engine->engineConfiguration2!=NULL, "e2 NULL initThermistors");
|
||||
initThermistorCurve(&engine->engineConfiguration2->clt, &engine->engineConfiguration->cltThermistorConf,
|
||||
engine->engineConfiguration->cltAdcChannel);
|
||||
initThermistorCurve(&engine->engineConfiguration2->iat, &engine->engineConfiguration->iatThermistorConf,
|
||||
|
|
|
@ -62,9 +62,11 @@ void setOutputPinValue(io_pin_e pin, int logicValue) {
|
|||
#if EFI_PROD_CODE
|
||||
if (outputs[pin].port == GPIO_NULL)
|
||||
return;
|
||||
#endif
|
||||
efiAssertVoid(pinDefaultState[pin]!=NULL, "pin mode not initialized");
|
||||
pin_output_mode_e mode = *pinDefaultState[pin];
|
||||
#else
|
||||
pin_output_mode_e mode = OM_DEFAULT;
|
||||
#endif
|
||||
setPinValue(&outputs[pin], getElectricalValue(logicValue, mode), logicValue);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue