Ensure thermometer has a middle mark
This commit is contained in:
parent
1a1a789030
commit
7b4e8c4330
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Thermometer(BottomDial):
|
||||||
cr.set_line_width(6.0)
|
cr.set_line_width(6.0)
|
||||||
|
|
||||||
level = self.min_value
|
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:
|
while level <= self.max_value:
|
||||||
if level >= self.WARN_VALUE:
|
if level >= self.WARN_VALUE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue