From 10cea18d0a2d31be233d8b68ffccf2b576ec45e5 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sun, 24 Aug 2025 16:08:51 +0200 Subject: [PATCH] temp: Use more sane substitute value When the ADC saturates, use a substitute value that doesn't kill the following math... --- Misc/Temp-Monitor/temperature_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/Temp-Monitor/temperature_monitor.py b/Misc/Temp-Monitor/temperature_monitor.py index 61cdaab..d40409c 100644 --- a/Misc/Temp-Monitor/temperature_monitor.py +++ b/Misc/Temp-Monitor/temperature_monitor.py @@ -31,7 +31,7 @@ while True: value = float(raw_value) / (2**24 - 1) if value > 0.9999: - value = 0 + value = 20e3 else: value = 10e3 * 1 / (1 / value - 1)