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:
parent
a1e43ce490
commit
84a75d8a5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user