Skip to content

Commit

Permalink
JDCode 및 JCBoard에서 true or false 반환값을 1 or 0으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
bigstone77 committed Dec 17, 2024
1 parent 6d99daf commit 53a1d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/modules/jcboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Module.prototype.handleLocalData = function(data) {
};

Module.prototype.requestRemoteData = function(handler) {
handler.write('A0', (this.sensorData[6] & 0x01)!=0? 1 : 0);
handler.write('A1', !!(this.sensorData[6] & 0x02)!=0? 1 : 0);
handler.write('A0', (this.sensorData[6] & 0x01)==0x01? 1 : 0);
handler.write('A1', (this.sensorData[6] & 0x02)==0x02? 1 : 0);
handler.write('A2', this.sensorData[7]);
handler.write('A3', this.sensorData[8]);
handler.write('A4', this.sensorData[9]);
Expand Down

0 comments on commit 53a1d8d

Please sign in to comment.