diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-02-11 15:31:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-02-11 15:31:09 +0100 |
commit | a41f3b1351107a51b1c733e13e09252506c3287a (patch) | |
tree | 3212bc9d6ea49805323d959a58b89c4ee6fd49e4 /lirc.c | |
parent | 6dd788f484102ee858d0c0a2b70808dca69e4140 (diff) | |
download | vdr-a41f3b1351107a51b1c733e13e09252506c3287a.tar.gz vdr-a41f3b1351107a51b1c733e13e09252506c3287a.tar.bz2 |
Fixed an unexpected k_Repeat key event after a k_Release in lirc.c
Diffstat (limited to 'lirc.c')
-rw-r--r-- | lirc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,7 +6,7 @@ * * LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 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); |