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

Merge eb6e25106ed2f6a931f9cfcf73759f4b0c5abcda into 3278173ef810935e07808deed58783c1bc7ca4cf

This commit is contained in:
Wilhelm Wiens 2024-11-28 04:20:11 +01:00 committed by GitHub
commit c7dcde1580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,6 +51,7 @@ public class SerialPlotter extends AbstractMonitor {
private ArrayList<Graph> graphs; private ArrayList<Graph> graphs;
private final static int BUFFER_CAPACITY = 500; private final static int BUFFER_CAPACITY = 500;
private final static int MAX_GRAPH_COUNT = 20;
private static class Graph { private static class Graph {
public CircularBuffer buffer; public CircularBuffer buffer;
@ -412,7 +413,7 @@ public class SerialPlotter extends AbstractMonitor {
int validParts = 0; int validParts = 0;
int validLabels = 0; int validLabels = 0;
for(int i = 0; i < parts.length; ++i) { for(int i = 0; i < parts.length && validParts < MAX_GRAPH_COUNT; ++i) {
Double value = null; Double value = null;
String label = null; String label = null;