Skip to content

Commit

Permalink
add bitmap masking for dpt1 ref #56
Browse files Browse the repository at this point in the history
  • Loading branch information
andreek committed Nov 19, 2018
1 parent efa680a commit 99cf7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Decoder.prototype.decode = function(len, data, callback) {
// eis 1 / dpt 1.xxx
if(len === 8) {
type = 'DPT1';
value = data;
value = data & 1;
}

// eis 6 / dpt 5.xxx
Expand Down

0 comments on commit 99cf7bc

Please sign in to comment.