diff --git a/library/lcd/lcd_comm.py b/library/lcd/lcd_comm.py index 4e2714fe..ef08cc81 100644 --- a/library/lcd/lcd_comm.py +++ b/library/lcd/lcd_comm.py @@ -420,7 +420,7 @@ def DisplayLineGraph(self, x: int, y: int, width: int, height: int, step = width / len(values) # pre compute yScale multiplier value - yScale = height / (max_value - min_value) + yScale = (height / (max_value - min_value)) if (max_value - min_value) != 0 else 0 plotsX = [] plotsY = []