From 5f788415ea48a027a9511922ccaa60f35361e31b Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 20 Jan 2022 21:48:18 -0500 Subject: [PATCH] what's the difference between setRpmValue and assignRpmValue #3815 refactoring --- firmware/controllers/engine_cycle/rpm_calculator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/controllers/engine_cycle/rpm_calculator.cpp b/firmware/controllers/engine_cycle/rpm_calculator.cpp index a6a5895440..45487e514e 100644 --- a/firmware/controllers/engine_cycle/rpm_calculator.cpp +++ b/firmware/controllers/engine_cycle/rpm_calculator.cpp @@ -83,9 +83,7 @@ RpmCalculator::RpmCalculator() : #if !EFI_PROD_CODE mockRpm = MOCK_UNDEFINED; #endif /* EFI_PROD_CODE */ - // todo: reuse assignRpmValue() method which needs - // which we cannot provide inside this parameter-less constructor. need a solution for this minor mess - setValidValue(0, 0); // 0 for current time since RPM sensor never times out + assignRpmValue(0); } /**