1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-26 20:54:22 +01:00

Changed SerialPlotter.java to contain <CLEAR> command

This commit is contained in:
Nikola 2020-03-28 16:39:48 +02:00
parent a1e43ce490
commit 84a75d8a5b

View File

@ -405,6 +405,12 @@ public class SerialPlotter extends AbstractMonitor {
// the line only contained trimmable characters
continue;
}
if(line.equals("<CLEAR>"){
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;