lirc: fix bug about lirc_raw_event

N/A

Change-Id: If00d0a7e4e4f9a0d9119b6a170cffd993f23f71a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-04-09 11:23:15 +08:00 committed by Brennan Ashton
parent f2e268d1bc
commit 018cf26605
1 changed files with 2 additions and 1 deletions

View File

@ -944,9 +944,10 @@ void lirc_raw_event(FAR struct lirc_lowerhalf_s *lower,
}
}
leave_critical_section(flags);
upper->gap = false;
}
leave_critical_section(flags);
}
sample = ev.pulse ? LIRC_PULSE(ev.duration) : LIRC_SPACE(ev.duration);