diff --git a/app/src/processing/app/SerialPlotter.java b/app/src/processing/app/SerialPlotter.java index 035005ac362..789f1b05e29 100644 --- a/app/src/processing/app/SerialPlotter.java +++ b/app/src/processing/app/SerialPlotter.java @@ -405,6 +405,12 @@ public void message(final String s) { // the line only contained trimmable characters continue; } + + if("".equals(line)){ + graphs.clear();//clear the graphs points in the array + xCount = 0;//reset the count of data point + } + String[] parts = line.split("[, \t]+"); if(parts.length == 0) { continue;