packed_decoder.js updated

This commit is contained in:
Klaus K Wilting 2018-06-18 00:35:12 +02:00
parent b69d66d7bc
commit 8ad8512eb2

View File

@ -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;