This is so confusing

This commit is contained in:
XANTRONIX Development 2024-01-08 23:08:46 -05:00
parent 2acf57d2e8
commit 59203a93a7

View file

@ -36,9 +36,11 @@ class Thermometer(BottomDial):
cr.set_line_width(6.0)
level = self.min_value
incr = math.ceil((self.max_value - self.min_value) / 9.0)
incr = (self.max_value - self.min_value) / 9.0
for i in range(0, 9):
level = self.min_value + i * incr
while level <= self.max_value:
if level >= self.WARN_VALUE:
cr.set_source_rgb(0.8, 0, 0)
else: