Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8b5a900

Browse files
authored
Message parsing logic fix
comparison was invalid if some parts were not parsable numbers
1 parent be01c39 commit 8b5a900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎app/src/processing/app/SerialPlotter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public void message(final String s) {
241241
for(int i = 0; i < parts.length; ++i) {
242242
try {
243243
double value = Double.valueOf(parts[i]);
244-
if(i >= graphs.size()) {
244+
if(validParts >= graphs.size()) {
245245
graphs.add(new Graph(validParts));
246246
}
247247
graphs.get(validParts).buffer.add(value);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /