From a41f3b1351107a51b1c733e13e09252506c3287a Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 11 Feb 2013 15:31:09 +0100 Subject: [PATCH] Fixed an unexpected k_Repeat key event after a k_Release in lirc.c --- HISTORY | 1 + lirc.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 8f60fc23..8b5e05a0 100644 --- a/HISTORY +++ b/HISTORY @@ -7595,3 +7595,4 @@ Video Disk Recorder Revision History - Fixed moving editing marks, so that they don't get overwritten with old values through an update of the marks file. - Removed an invalid line from channels.conf.terr (reported by Lars Hanisch). +- Fixed an unexpected k_Repeat key event after a k_Release in lirc.c. diff --git a/lirc.c b/lirc.c index 42f07406..e8d0be15 100644 --- a/lirc.c +++ b/lirc.c @@ -6,7 +6,7 @@ * * LIRC support added by Carsten Koch 2000-06-16. * - * $Id: lirc.c 2.4 2013/02/03 11:23:18 kls Exp $ + * $Id: lirc.c 2.5 2013/02/11 15:25:42 kls Exp $ */ #include "lirc.h" @@ -114,9 +114,10 @@ void cLircRemote::Action(void) repeat = true; timeout = Delta * 10 / 9; } - if (pressed) + if (pressed) { LastTime.Set(); Put(KeyName, repeat); + } } else if (pressed && repeat) { // the last one was a repeat, so let's generate a release Put(LastKeyName, false, true);