Commit d669bc40d49f55c483cd7454c262e968078bb829
1 parent
fef2ac1d
Exists in
master
Changed input processing to accomodate Py3's stricter type requirements
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py
| @@ -167,7 +167,8 @@ def pollSerial(elapsed): | @@ -167,7 +167,8 @@ def pollSerial(elapsed): | ||
| 167 | if os=='Windows': | 167 | if os=='Windows': |
| 168 | values = datafeed.readline().strip().split(b", ") | 168 | values = datafeed.readline().strip().split(b", ") |
| 169 | else: | 169 | else: |
| 170 | - values = datafeed.readline().strip().split(", ") | 170 | + values = datafeed.readline().strip()#.split(', ') |
| 171 | + values = str(values).split(", ") | ||
| 171 | testseries.addpoint(values) | 172 | testseries.addpoint(values) |
| 172 | 173 | ||
| 173 | # Pyglet looks after the main event loop, but this ensures that data keeps being read in | 174 | # Pyglet looks after the main event loop, but this ensures that data keeps being read in |