From 0f283d04d308dd33e2955a23a6422c74c2a8b03b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 5 Oct 2021 15:30:51 -0400 Subject: [PATCH] https://github.com/rusefi/rusefi/issues/3302 --- firmware/console/status_loop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 39f9bbfbff..a8e3f02ee6 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -657,6 +657,8 @@ static void updateFlags() { #endif /* EFI_INTERNAL_FLASH */ } +// weird thing: one of the reasons for this to be a separate method is stack usage reduction in non-optimized build +// see https://github.com/rusefi/rusefi/issues/3302 and linked tickets static void updateTpsDebug() { // TPS 1 pri/sec split tsOutputChannels.debugFloatField1 = Sensor::get(SensorType::Tps1Primary).value_or(0) - Sensor::get(SensorType::Tps1Secondary).value_or(0);