From 5c9cf136f0c22313c81afac00e596e8bc25c97fa Mon Sep 17 00:00:00 2001 From: michatrautweiler Date: Fri, 24 May 2019 10:19:34 +0200 Subject: [PATCH] return decoded value in any case Fix plain decoder for TTN: Decoded value was not returned except for last case. --- src/TTN/plain_decoder.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TTN/plain_decoder.js b/src/TTN/plain_decoder.js index d87fcb9e..96655ee7 100644 --- a/src/TTN/plain_decoder.js +++ b/src/TTN/plain_decoder.js @@ -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; }