update packed_decoder.js (Port2 / rcommand 0x86)

This commit is contained in:
Verkehrsrot 2019-03-31 20:46:44 +02:00
parent 77c19699b9
commit f9daf5a16f

View File

@ -34,8 +34,8 @@ function Decoder(bytes, port) {
return decode(bytes, [uint16, uptime, uint8, uint32, uint8, uint8], ['voltage', 'uptime', 'cputemp', 'memory', 'reset0', 'reset1']); return decode(bytes, [uint16, uptime, uint8, uint32, uint8, uint8], ['voltage', 'uptime', 'cputemp', 'memory', 'reset0', 'reset1']);
} }
// epoch time answer // epoch time answer
if (bytes.length === 4) { if (bytes.length === 5) {
return decode(bytes, [uint32], ['time']); return decode(bytes, [uint32, uint8], ['time', 'timestatus']);
} }
} }