mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-28 09:24:14 +01:00
Serial Plotter: Don't try to parse line containing only trimmable characters
This commit is contained in:
parent
b551bf55ba
commit
8f0237531f
@ -289,6 +289,10 @@ public class SerialPlotter extends AbstractMonitor {
|
||||
messageBuffer.delete(0, linebreak + 1);
|
||||
|
||||
line = line.trim();
|
||||
if (line.length() == 0) {
|
||||
// the line only contained trimmable characters
|
||||
continue;
|
||||
}
|
||||
String[] parts = line.split("[, \t]+");
|
||||
if(parts.length == 0) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user