Skip to content

Commit

Permalink
fix: actualy actually fix (#139)
Browse files Browse the repository at this point in the history
* fix: actualy actually fix

* chore: bump version
  • Loading branch information
koen1711 authored Nov 8, 2024
1 parent 64d0eda commit 5853860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dist",
"media"
],
"version": "3.2.5",
"version": "3.2.6",
"description": "Leaphy custom Blockly blocks and arduino code generator",
"name": "@leaphy-robotics/leaphy-blocks"
}
2 changes: 1 addition & 1 deletion src/generators/arduino/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function getCodeGenerators(arduino: Arduino) {
arduino.valueToCode(block, "INDEX", arduino.ORDER_ATOMIC) || "0";

const name = list.name.replaceAll(" ", "_");
return `${name}.remove(${index});\n${list.name}.addAtIndex(${index}, ${value});\n`;
return `${name}.remove(${index});\n${name}.addAtIndex(${index}, ${value});\n`;
};

arduino.forBlock["lists_length"] = function (block) {
Expand Down

0 comments on commit 5853860

Please sign in to comment.