diff --git a/scripts/ugj_blocks.js b/scripts/ugj_blocks.js index f3c747c..2568ffa 100644 --- a/scripts/ugj_blocks.js +++ b/scripts/ugj_blocks.js @@ -759,7 +759,7 @@ Blockly.Blocks['ugj_i2c_read_byte_data'] = { }; Blockly.JavaScript['ugj_i2c_read_byte_data'] = function (block) { var value_reg = Blockly.JavaScript.valueToCode(block, 'reg', Blockly.JavaScript.ORDER_ATOMIC); - var code = `pi.i2c_read_byte_data(i2c_hand, ${value_reg});\n`; + var code = `pi.i2c_read_byte_data(i2c_hand, ${value_reg})\n`; return [code, Blockly.JavaScript.ORDER_NONE]; }; Blockly.Python['ugj_i2c_read_byte_data'] = function (block) {