From 5163d0fb5a839f0232acfd130eac0d1c923339c6 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 21 Apr 2024 19:46:42 -0400 Subject: [PATCH] hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376 only:magicNumberAvailableForDevTricks --- firmware/init/sensor/init_tps.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/init/sensor/init_tps.cpp b/firmware/init/sensor/init_tps.cpp index 32b6966ea4..4f4073b162 100644 --- a/firmware/init/sensor/init_tps.cpp +++ b/firmware/init/sensor/init_tps.cpp @@ -33,7 +33,8 @@ public: return false; } - AdcSubscription::SubscribeSensor(m_sens, cfg.channel, 200); + float lowpassCutoffHz = engineConfiguration->magicNumberAvailableForDevTricks > 3 ? engineConfiguration->magicNumberAvailableForDevTricks : 200; + AdcSubscription::SubscribeSensor(m_sens, cfg.channel, lowpassCutoffHz); return m_sens.Register(); }