From 387c03a4d74c4464e2fb17b027661b2b5a82c2ca Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 6 Dec 2022 17:00:20 -0800 Subject: [PATCH] avoid bogus temperature with disconnected sensor --- firmware/sampling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/sampling.cpp b/firmware/sampling.cpp index 11e7e8e..081d67b 100644 --- a/firmware/sampling.cpp +++ b/firmware/sampling.cpp @@ -22,7 +22,7 @@ struct measure_results { static struct measure_results results[AFR_CHANNELS]; // Last point is approximated by the greatest measurable sensor resistance -static const float lsu49TempBins[] = { 80, 150, 200, 250, 300, 350, 400, 450, 550, 650, 800, 1000, 1200, 2500, 5000 }; +static const float lsu49TempBins[] = { 80, 150, 200, 250, 300, 350, 400, 450, 550, 650, 800, 1000, 1200, 2500, 4500 }; static const float lsu49TempValues[] = { 1030, 890, 840, 805, 780, 760, 745, 730, 705, 685, 665, 640, 630, 565, 500 }; constexpr float f_abs(float x)