diff --git a/package.json b/package.json index 21e6735..d2fb517 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/src/generators/arduino/lists.ts b/src/generators/arduino/lists.ts index 3da8921..4678c03 100644 --- a/src/generators/arduino/lists.ts +++ b/src/generators/arduino/lists.ts @@ -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) {