From 53a1d8dd5cc61d6cf44c23f46563d3da3525b08d Mon Sep 17 00:00:00 2001 From: bigstone77 Date: Tue, 17 Dec 2024 21:49:05 +0900 Subject: [PATCH] =?UTF-8?q?JDCode=20=EB=B0=8F=20JCBoard=EC=97=90=EC=84=9C?= =?UTF-8?q?=20true=20or=20false=20=EB=B0=98=ED=99=98=EA=B0=92=EC=9D=84=201?= =?UTF-8?q?=20or=200=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/jcboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/jcboard.js b/app/modules/jcboard.js index 950836000..bf9260071 100644 --- a/app/modules/jcboard.js +++ b/app/modules/jcboard.js @@ -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]);