allow temperature reads to converge a bit faster
[EVA-2020-02-2.git] / examples / compensated-temperature.py
index 367961003a6cd90afdcd0251f3e6d04e4ff90887..2733f56c756d43a2bcc1cf57a6eef085ed9f6117 100755 (executable)
@@ -33,7 +33,7 @@ def get_cpu_temperature():
 # temperature down, and increase to adjust up
 factor = 0.8
 
-cpu_temps = [0] * 5
+cpu_temps = [get_cpu_temperature()] * 5
 
 while True:
     cpu_temp = get_cpu_temperature()