revised decoder.js

Merge branch 'STS_M1A' of http://gitea.yunhorn.com/sundp/STS_RR_R125 into STS_M1A
This commit is contained in:
Yunhorn 2023-12-28 11:11:05 +08:00
commit 17d5c1cbc9
1 changed files with 1 additions and 1 deletions

View File

@ -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",