return decoded value in any case

Fix plain decoder for TTN: Decoded value was not returned except for last case.
This commit is contained in:
michatrautweiler 2019-05-24 10:19:34 +02:00 committed by GitHub
parent 50b24d2e12
commit 5c9cf136f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,6 @@ function Decoder(bytes, port) {
decoded.time = ((bytes[i++] << 24) | (bytes[i++] << 16) | (bytes[i++] << 8) | bytes[i++]);
decoded.timestatus = bytes[i++];
}
return decoded;
}
return decoded;
}