From 8ad8512eb24a9a975b96dae480fbb91f6c19323a Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 18 Jun 2018 00:35:12 +0200 Subject: [PATCH] packed_decoder.js updated --- src/TTN/packed_decoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TTN/packed_decoder.js b/src/TTN/packed_decoder.js index f7e06f52..af28fab4 100644 --- a/src/TTN/packed_decoder.js +++ b/src/TTN/packed_decoder.js @@ -118,7 +118,7 @@ var bitmap = function (byte) { } var i = bytesToInt(byte); var bm = ('00000000' + Number(i).toString(2)).substr(-8).split('').map(Number).map(Boolean); - return ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'] + return ['adr', 'screensaver', 'display', 'countermode', 'blescan', 'antenna', 'filter', 'gpsmode'] .reduce(function (obj, pos, index) { obj[pos] = bm[index]; return obj;