Typo Correction in Payload Function

This commit is contained in:
seiichiro 2020-06-13 16:13:18 +02:00
parent e9a12cb02b
commit a4c40b1b5d

View file

@ -27,7 +27,7 @@ function Decoder(bytes, port) {
// Alarm Triggered (uint8_t)
if (bytes.length == 2)
decoded.a = bytes(1);
decoded.a = bytes[1];
// Temperature (int32_t)
if (bytes.length >= 5)