From dd215964de9f246e401b35e9822e901c081d1376 Mon Sep 17 00:00:00 2001 From: Yunhorn Date: Wed, 27 Dec 2023 18:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'decoder.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- decoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder.js b/decoder.js index 85ea2c4..cbdd6c1 100644 --- a/decoder.js +++ b/decoder.js @@ -14,7 +14,7 @@ function Decode(fPort, data, variables) { top2_position: "X= " + bytes[9] % 10 + " Y= " + parseFloat(bytes[9] / 10).toFixed(0), top3_position: "X= " + bytes[10] % 10 + " Y= " + parseFloat(bytes[10] / 10).toFixed(0), top4_position: "X= " + bytes[11] % 10 + " Y= " + parseFloat(bytes[11] / 10).toFixed(0), - min_temp: (bytes[12] | bytes[13] / 100) + "C", + min_temp: (bytes[12] + bytes[13] / 100) + "C", average_temp: (bytes[14] + bytes[15] / 100) + "C", max_temp: (bytes[16] + bytes[17] / 100) + "C", center_temp: (bytes[18] + bytes[19] / 100) + "C",