Skip to content

Commit f1b9837

Browse files
matthias-bsterrillmoore
authored andcommitted
fixed names in bitmap decoding
1 parent 247465a commit f1b9837

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/arduino_lorawan_esp32_example/ttn_decoder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ function ttn_decoder_fp(bytes) {
122122
}
123123
var i = bytesToInt(byte);
124124
var bm = ('00000000' + Number(i).toString(2)).substr(-8).split('').map(Number).map(Boolean);
125-
//return ['res5', 'res4', 'res3', 'res2', 'res1', 'res0', 'dec_ok', 'batt_ok']
126-
return ['res4', 'res3', 'res2', 'res1', 'res0', 'ble_ok', 'dec_ok', 'batt_ok']
125+
return ['res4', 'res3', 'res2', 'res1', 'res0', 'runtime_exp', 'data_ok', 'battery_ok']
127126
.reduce(function(obj, pos, index) {
128127
obj[pos] = bm[index];
129128
return obj;

0 commit comments

Comments
 (0)