Typo Correction in Payload Function
This commit is contained in:
parent
e9a12cb02b
commit
a4c40b1b5d
|
@ -27,7 +27,7 @@ function Decoder(bytes, port) {
|
||||||
|
|
||||||
// Alarm Triggered (uint8_t)
|
// Alarm Triggered (uint8_t)
|
||||||
if (bytes.length == 2)
|
if (bytes.length == 2)
|
||||||
decoded.a = bytes(1);
|
decoded.a = bytes[1];
|
||||||
|
|
||||||
// Temperature (int32_t)
|
// Temperature (int32_t)
|
||||||
if (bytes.length >= 5)
|
if (bytes.length >= 5)
|
||||||
|
|
Loading…
Reference in a new issue