Skip to content

Commit

Permalink
Update robotry_parodule.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaJinK committed Aug 30, 2023
1 parent b4c1608 commit adbb2a5
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions app/modules/robotry_parodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,22 @@ class Parodule extends BaseModule {
return;
}

Check warning on line 113 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":113,"column":13,"nodeType":"Punctuator","messageId":"nextLineClose","endLine":113,"endColumn":14,"fix":{"range":[3112,3125],"text":" "}}
else if (data[0] == 0xff && data[1] == 0x44) {
let temp = ['', '', '', ''];
let temp = {};

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

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 'temp' is never reassigned. Use 'const' instead. Raw Output: {"ruleId":"prefer-const","severity":1,"message":"'temp' is never reassigned. Use 'const' instead.","line":115,"column":21,"nodeType":"Identifier","messageId":"useConst","endLine":115,"endColumn":25,"fix":{"range":[3188,3191],"text":"const"}}
let readData = data.subarray(2, data.length);

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

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 'readData' is never reassigned. Use 'const' instead. Raw Output: {"ruleId":"prefer-const","severity":1,"message":"'readData' is never reassigned. Use 'const' instead.","line":116,"column":21,"nodeType":"Identifier","messageId":"useConst","endLine":116,"endColumn":29,"fix":{"range":[3219,3222],"text":"const"}}
for (let i = 0; i < 4; i++) {
self.paroduleData.MODULE[i] = readData[i];
}
for (let i = 0; i < 4; i++) {
let value = self.paroduleData.MODULE[i];
if (value == 209) {
if (self.paroduleData.MODULE[i] == 209)

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

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 Expected { after 'if' condition. Raw Output: {"ruleId":"curly","severity":1,"message":"Expected { after 'if' condition.","line":121,"column":21,"nodeType":"IfStatement","messageId":"missingCurlyAfterCondition","fix":{"range":[3522,3538],"text":"{temp[i] = 'LED';}"}}
temp[i] = 'LED';
}
else if (value == 210) {
else if (self.paroduleData.MODULE[i] == 210)

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

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 Expected { after 'if' condition. Raw Output: {"ruleId":"curly","severity":1,"message":"Expected { after 'if' condition.","line":123,"column":26,"nodeType":"IfStatement","messageId":"missingCurlyAfterCondition","fix":{"range":[3628,3643],"text":"{temp[i] = '모터';}"}}
temp[i] = '모터';
}
else if (value == 211) {
else if (self.paroduleData.MODULE[i] == 211)

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

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 Expected { after 'if' condition. Raw Output: {"ruleId":"curly","severity":1,"message":"Expected { after 'if' condition.","line":125,"column":26,"nodeType":"IfStatement","messageId":"missingCurlyAfterCondition","fix":{"range":[3733,3748],"text":"{temp[i] = '부저';}"}}
temp[i] = '부저';
}
else if (value == 208) {
else if (self.paroduleData.MODULE[i] == 208)

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

View workflow job for this annotation

GitHub Actions / runner / eslint

[eslint] reported by reviewdog 🐶 Expected { after 'if' condition. Raw Output: {"ruleId":"curly","severity":1,"message":"Expected { after 'if' condition.","line":127,"column":26,"nodeType":"IfStatement","messageId":"missingCurlyAfterCondition","fix":{"range":[3838,3853],"text":"{temp[i] = '없음';}"}}
temp[i] = '없음';
} else {
else
temp[i] = '모름';
}
}
self.paroduleData.MODULE1 = temp[0];
self.paroduleData.MODULE2 = temp[1];
Expand Down Expand Up @@ -164,7 +159,7 @@ class Parodule extends BaseModule {
// 엔트리에서 받은 데이터에 대한 처리
handleRemoteData(handler) {
const interval = 60000; // 1분에 한번씩 연결된 모듈 데이터 호출
const cur_time = Date.now();
let cur_time = Date.now();
let self = this;
let cmdDatas = handler.read('CMD');
let getDatas = handler.read('GET');
Expand Down

0 comments on commit adbb2a5

Please sign in to comment.