Skip to content

Commit

Permalink
Apply ignore_mask to pre data
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Mar 28, 2024
1 parent 0d60f6d commit 47d8670
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lircd_conf/irp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ impl<'a> Builder<'a> {
} else {
Stream::Constant {
v: self.remote.pre_data,
ignore: 0,
ignore: if self.encoding {
0
} else {
self.remote.ignore_mask >> (self.remote.bits + self.remote.post_data_bits)
},
}
};

Expand Down

0 comments on commit 47d8670

Please sign in to comment.