diff --git a/firmware/hw_layer/sensors/lps25.h b/firmware/hw_layer/sensors/lps25.h index b52b516cf1..bd8b6a8073 100644 --- a/firmware/hw_layer/sensors/lps25.h +++ b/firmware/hw_layer/sensors/lps25.h @@ -18,9 +18,12 @@ public: bool init(brain_pin_e scl, brain_pin_e sda); expected readPressureKpa(); - // todo: make this private and get getter? - bool m_hasInit = false; + bool hasInit() const { + return m_hasInit; + } private: BitbangI2c m_i2c; + + bool m_hasInit = false; }; diff --git a/firmware/hw_layer/smart_gpio.cpp b/firmware/hw_layer/smart_gpio.cpp index adff2d2cf8..452c634f0e 100644 --- a/firmware/hw_layer/smart_gpio.cpp +++ b/firmware/hw_layer/smart_gpio.cpp @@ -240,7 +240,6 @@ void initSmartGpio() { } void tle8888startup() { - tle8888startup(); static efitick_t tle8888CrankingResetTime = 0; if (CONFIG(useTLE8888_cranking_hack) && ENGINE(rpmCalculator).isCranking()) { diff --git a/firmware/init/sensor/init_baro.cpp b/firmware/init/sensor/init_baro.cpp index 27e9f87a76..bc5672892b 100644 --- a/firmware/init/sensor/init_baro.cpp +++ b/firmware/init/sensor/init_baro.cpp @@ -22,7 +22,7 @@ void initBaro(DECLARE_CONFIG_PARAMETER_SIGNATURE) { void baroLps25Update() { #if EFI_PROD_CODE - if (device.m_hasInit) { + if (device.hasInit()) { sensor.update(); } #endif // EFI_PROD_CODE