update packed_decoder.js (Port2 / rcommand 0x86)
This commit is contained in:
parent
77c19699b9
commit
f9daf5a16f
@ -34,8 +34,8 @@ function Decoder(bytes, port) {
|
||||
return decode(bytes, [uint16, uptime, uint8, uint32, uint8, uint8], ['voltage', 'uptime', 'cputemp', 'memory', 'reset0', 'reset1']);
|
||||
}
|
||||
// epoch time answer
|
||||
if (bytes.length === 4) {
|
||||
return decode(bytes, [uint32], ['time']);
|
||||
if (bytes.length === 5) {
|
||||
return decode(bytes, [uint32, uint8], ['time', 'timestatus']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user