1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed an unexpected k_Repeat key event after a k_Release in lirc.c

This commit is contained in:
Klaus Schmidinger 2013-02-11 15:31:09 +01:00
parent 6dd788f484
commit a41f3b1351
2 changed files with 4 additions and 2 deletions

View File

@ -7595,3 +7595,4 @@ Video Disk Recorder Revision History
- Fixed moving editing marks, so that they don't get overwritten with old values - Fixed moving editing marks, so that they don't get overwritten with old values
through an update of the marks file. through an update of the marks file.
- Removed an invalid line from channels.conf.terr (reported by Lars Hanisch). - 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.

5
lirc.c
View File

@ -6,7 +6,7 @@
* *
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16. * 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" #include "lirc.h"
@ -114,10 +114,11 @@ void cLircRemote::Action(void)
repeat = true; repeat = true;
timeout = Delta * 10 / 9; timeout = Delta * 10 / 9;
} }
if (pressed) if (pressed) {
LastTime.Set(); LastTime.Set();
Put(KeyName, repeat); Put(KeyName, repeat);
} }
}
else if (pressed && repeat) { // the last one was a repeat, so let's generate a release else if (pressed && repeat) { // the last one was a repeat, so let's generate a release
Put(LastKeyName, false, true); Put(LastKeyName, false, true);
pressed = false; pressed = false;