Skip to content

Commit

Permalink
update packed_decoder.js (Port2 / rcommand 0x86)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberman54 committed Mar 31, 2019
1 parent 77c1969 commit f9daf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TTN/packed_decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

Expand Down

0 comments on commit f9daf5a

Please sign in to comment.