diff --git a/firmware/controllers/algo/accel_enrichment.cpp b/firmware/controllers/algo/accel_enrichment.cpp index e6c7fe599d..ef64d84037 100644 --- a/firmware/controllers/algo/accel_enrichment.cpp +++ b/firmware/controllers/algo/accel_enrichment.cpp @@ -56,7 +56,7 @@ void AccelEnrichmemnt::reset() { } void AccelEnrichmemnt::onEngineCycleTps(DECLARE_ENGINE_PARAMETER_F) { - float tps = getTPS(); + float tps = getTPS(PASS_ENGINE_PARAMETER_F); cb.add(delta); } diff --git a/firmware/hw_layer/trigger_input.cpp b/firmware/hw_layer/trigger_input.cpp index ed83d85e9e..aa9e70913c 100644 --- a/firmware/hw_layer/trigger_input.cpp +++ b/firmware/hw_layer/trigger_input.cpp @@ -79,7 +79,7 @@ static ICUDriver *turnOnTriggerInputPin(brain_pin_e hwPin) { shaft_icucfg.width_cb = needWidthCallback ? shaft_icu_width_callback : NULL; bool_t needPeriodCallback = !CONFIG(useOnlyFrontForTrigger) || !TRIGGER_SHAPE(useRiseEdge); - shaft_icucfg.width_cb = needPeriodCallback ? shaft_icu_period_callback : NULL; + shaft_icucfg.period_cb = needPeriodCallback ? shaft_icu_period_callback : NULL; efiIcuStart(driver, &shaft_icucfg); icuEnable(driver);