auto-sync

This commit is contained in:
rusEfi 2014-10-13 08:03:11 -05:00
parent 183fbbc2e2
commit 36978c9626
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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);
}