From 1be8d97e2853e0b523d2b0eb1ef8a79048330360 Mon Sep 17 00:00:00 2001 From: ocogeclub Date: Wed, 1 Sep 2021 22:32:36 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=E3=82=A4=E3=83=B3=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF=E3=81=AB=E3=82=BB?= =?UTF-8?q?=E3=83=9F=E3=82=B3=E3=83=AD=E3=83=B3=E3=81=8C=E3=81=A4=E3=81=84?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ugj_blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {