Skip to content

Commit

Permalink
LED 픽셀로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaJinK committed Aug 31, 2023
1 parent 9b7d595 commit 6cd80ee
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/modules/robotry_parodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Parodule extends BaseModule {
};
this.UNKNOWN = 207;
this.NONE = 208;
this.LED = 209;
this.PIXEL = 209;
this.MOTOR = 210;
this.BUZZER = 211;
this.paroduleData = {
Expand All @@ -27,10 +27,10 @@ class Parodule extends BaseModule {
'2': 0,
'3': 0,
},
MODULE1: 'LED',
MODULE2: 'LED',
MODULE3: 'LED',
MODULE4: 'LED',
MODULE1: '픽셀',
MODULE2: '픽셀',
MODULE3: '픽셀',
MODULE4: '픽셀',
};
this.isConnect = false;
this.cmdTime = 0;
Expand Down Expand Up @@ -127,16 +127,16 @@ class Parodule extends BaseModule {
}
for (let i = 0; i < 4; i++) {
let value = self.paroduleData.MODULE[i];

Check warning on line 129 in app/modules/robotry_parodule.js

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 'value' is never reassigned. Use 'const' instead. Raw Output: {"ruleId":"prefer-const","severity":1,"message":"'value' is never reassigned. Use 'const' instead.","line":129,"column":25,"nodeType":"Identifier","messageId":"useConst","endLine":129,"endColumn":30,"fix":{"range":[3621,3624],"text":"const"}}
if (value == 209) {
temp[i] = 'LED';
if (value == this.PIXEL) {
temp[i] = '픽셀';
}

Check warning on line 132 in app/modules/robotry_parodule.js

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 Closing curly brace does not appear on the same line as the subsequent block. Raw Output: {"ruleId":"brace-style","severity":1,"message":"Closing curly brace does not appear on the same line as the subsequent block.","line":132,"column":21,"nodeType":"Punctuator","messageId":"nextLineClose","endLine":132,"endColumn":22,"fix":{"range":[3770,3791],"text":" "}}
else if (value == 210) {
else if (value == this.MOTOR) {
temp[i] = '모터';
}
else if (value == 211) {
else if (value == this.BUZZER) {
temp[i] = '부저';
}
else if (value == 208) {
else if (value == this.NONE) {
temp[i] = '없음';
} else {
temp[i] = '모름';
Expand Down

0 comments on commit 6cd80ee

Please sign in to comment.