Commit 4863d03c73a3a6d36fefb0830494d3187255f65b
1 parent
6dbc3a2c
Exists in
master
Fixed obvious bug in serial polling code
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
telemetry/code/monitor/graph_plotter_rewrite.py
| @@ -26,7 +26,7 @@ class Series: | @@ -26,7 +26,7 @@ class Series: | ||
| 26 | def addpoint(self, point): | 26 | def addpoint(self, point): |
| 27 | self.data.append(point) | 27 | self.data.append(point) |
| 28 | if len(self.data) > self.points: | 28 | if len(self.data) > self.points: |
| 29 | - del self.points[-1] | 29 | + del self.data[0] |
| 30 | 30 | ||
| 31 | class Plot(pyglet.window.Window): | 31 | class Plot(pyglet.window.Window): |
| 32 | def __init__(self, series): | 32 | def __init__(self, series): |