Skip to content

Commit 5ada72d

Browse files
authored
Merge pull request #383 from FoamyGuy/plotter_var_fix
Fix Serial Plotter
2 parents 8e59c70 + db35a85 commit 5ada72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/common/plotter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function plotValues(chartObj, serialMessage, bufferSize) {
4848

4949
// handle possible tuple in textLine
5050
if (textLine.startsWith("(") && textLine.endsWith(")")) {
51-
textValues = textLine.substring(1, textLine.length - 1).trim();
51+
let textValues = textLine.substring(1, textLine.length - 1).trim();
5252
// Python tuples can end with a comma, but JS arrays cannot
5353
if (textValues.endsWith(",")) {
5454
textValues = textValues.substring(0, textValues.length - 1);

0 commit comments

Comments
 (0)