temp: Use more sane substitute value

When the ADC saturates, use a substitute value that doesn't kill the
following math...
This commit is contained in:
Rahix 2025-08-24 16:08:51 +02:00
parent 115eecde4f
commit 10cea18d0a

View file

@ -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)