Ensure thermometer has a middle mark

This commit is contained in:
XANTRONIX Development 2024-01-02 17:25:03 -05:00
parent 1a1a789030
commit 7b4e8c4330

View file

@ -38,7 +38,7 @@ class Thermometer(BottomDial):
cr.set_line_width(6.0)
level = self.min_value
incr = (self.max_value - self.min_value) / 9
incr = math.ceil((self.max_value - self.min_value) / 9)
while level <= self.max_value:
if level >= self.WARN_VALUE: