From 181b5b2ed8f0a8efecd1c80ff5738fe1e4150ce2 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 29 Nov 2022 02:10:55 -0500 Subject: [PATCH] ETB JNI test progress --- firmware/init/sensor/init_tps.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/firmware/init/sensor/init_tps.cpp b/firmware/init/sensor/init_tps.cpp index 5b51fa02a9..0beebb9c32 100644 --- a/firmware/init/sensor/init_tps.cpp +++ b/firmware/init/sensor/init_tps.cpp @@ -57,10 +57,11 @@ private: bool configure(const TpsConfig& cfg) { // Only configure if we have a channel if (!isAdcChannelValid(cfg.channel)) { - printf("Configured NO\n"); +#if EFI_UNIT_TEST + printf("Configured NO hardware %s\n", name()); +#endif return false; } - printf("Configured YES\n"); float scaledClosed = cfg.closed / m_func.getDivideInput(); float scaledOpen = cfg.open / m_func.getDivideInput(); @@ -72,7 +73,6 @@ private: firmwareError(OBD_TPS_Configuration, "\"%s\" problem: open %.2f/closed %.2f cal values are too close together. Check your calibration and wiring!", name(), cfg.open, cfg.closed); - printf("Configured split\n"); return false; } @@ -82,7 +82,9 @@ private: cfg.min, cfg.max ); - printf("Configured true\n"); +#if EFI_UNIT_TEST + printf("Configured YES %s\n", name()); +#endif return true; }