diff --git a/app/src/processing/app/SerialPlotter.java b/app/src/processing/app/SerialPlotter.java index 87e8c5256..789f1b05e 100644 --- a/app/src/processing/app/SerialPlotter.java +++ b/app/src/processing/app/SerialPlotter.java @@ -406,7 +406,7 @@ public class SerialPlotter extends AbstractMonitor { continue; } - if(line.equals("")){ + if("".equals(line)){ graphs.clear();//clear the graphs points in the array xCount = 0;//reset the count of data point }