From 47d867099cc171c12a7968aef00d5cb42d33bd83 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Thu, 28 Mar 2024 09:41:09 +0000 Subject: [PATCH] Apply ignore_mask to pre data Signed-off-by: Sean Young --- src/lircd_conf/irp.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lircd_conf/irp.rs b/src/lircd_conf/irp.rs index 34831dba..42fb9e68 100644 --- a/src/lircd_conf/irp.rs +++ b/src/lircd_conf/irp.rs @@ -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) + }, } };