Skip to content

Commit 777e9f6

Browse files
authored
Merge pull request #3015 from mkidkm/develop-hw
키가 눌러져 있는가? 블록 오류 수정
2 parents 539e6bf + dbe6360 commit 777e9f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/playground/blocks/hardware/block_ITPLE_board.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Entry.ITPLE.getBlocks = function () {
344344
type: 'ITPLE_is_key_pressed',
345345
},
346346
paramsKeyMap: {
347-
KEY: 1,
347+
KEY: 0,
348348
},
349349
"class": 'ITPLEGet',
350350
isNotFor: ['ITPLE'],
@@ -357,8 +357,8 @@ Entry.ITPLE.getBlocks = function () {
357357
'8': { type: 'DIGITAL', index: 8 },
358358
};
359359

360-
const seletedKey = script.getField('KEY');
361-
const portConfig = keyToPortMap[seletedKey];
360+
const selectedKey = script.getField('KEY');
361+
const portConfig = keyToPortMap[selectedKey];
362362

363363
// 유효하지 않은 키는 즉시 false를 반환합니다.
364364
if (!portConfig) {
@@ -376,7 +376,7 @@ Entry.ITPLE.getBlocks = function () {
376376
js: [],
377377
py: [
378378
{
379-
syntax: 'Arduino.digitalRead(%1)==0',
379+
syntax: 'Arduino.digitalRead("%1")==0',
380380
},
381381
],
382382
},
@@ -1229,4 +1229,4 @@ Entry.ITPLE.getBlocks = function () {
12291229
};
12301230
//endregion ITPLE 아두이노 확장모드
12311231

1232-
module.exports = Entry.ITPLE;
1232+
module.exports = Entry.ITPLE;

0 commit comments

Comments
 (0)