allow temperature reads to converge a bit faster
[EVA-2020-02-2.git] / examples / all-in-one-no-pm.py
index ab1a1a76923e15a9940ec2b5aee13ddf6e9064dc..f7ebcdcb42bbfeac369ab1a612fbf55ac0bbb0fd 100755 (executable)
@@ -87,7 +87,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
 
 delay = 0.5  # Debounce the proximity tap
 mode = 0  # The starting mode