1
0
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:
Sandeep Mistry 2019-09-17 11:17:58 -04:00 committed by Sandeep Mistry
parent b551bf55ba
commit 8f0237531f

View File

@ -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;