diff --git a/firmware/controllers/sensors/thermistors.cpp b/firmware/controllers/sensors/thermistors.cpp index 22412c35da..7b588ef5d7 100644 --- a/firmware/controllers/sensors/thermistors.cpp +++ b/firmware/controllers/sensors/thermistors.cpp @@ -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, diff --git a/firmware/controllers/system/efiGpio.cpp b/firmware/controllers/system/efiGpio.cpp index 761d64df37..9b39336717 100644 --- a/firmware/controllers/system/efiGpio.cpp +++ b/firmware/controllers/system/efiGpio.cpp @@ -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); }