File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ private Ticks computeBounds() {
87
87
minY = Double .POSITIVE_INFINITY ;
88
88
maxY = Double .NEGATIVE_INFINITY ;
89
89
for (Graph g : graphs ) {
90
- minY = Math .min (g .buffer .min (), minY );
91
- maxY = Math .max (g .buffer .max (), maxY );
90
+ if (!g .buffer .isEmpty ()) {
91
+ minY = Math .min (g .buffer .min (), minY );
92
+ maxY = Math .max (g .buffer .max (), maxY );
93
+ }
92
94
}
93
95
94
96
final double MIN_DELTA = 10.0 ;
@@ -239,7 +241,7 @@ public void message(final String s) {
239
241
for (int i = 0 ; i < parts .length ; ++i ) {
240
242
try {
241
243
double value = Double .valueOf (parts [i ]);
242
- if (i >= graphs .size ()) {
244
+ if (validParts >= graphs .size ()) {
243
245
graphs .add (new Graph (validParts ));
244
246
}
245
247
graphs .get (validParts ).buffer .add (value );
Original file line number Diff line number Diff line change 1
1
ARDUINO 1.6.13
2
2
3
3
[ide]
4
+ * Improved robustness of Serial Plotter while dealing with malformed or partial data. Thanks @xloem.
5
+ * Fixed regression on command line upload.
4
6
5
7
[core]
6
8
You can’t perform that action at this time.
0 commit comments