LinuxTV Patchwork VDR 1.7.37: missing braces in lirc.c

login
register
mail settings
Submitter Klaus Schmidinger
Date Feb. 11, 2013, 3:30 p.m.
Message ID <51190E8E.2060809@tvdr.de>
Download mbox | patch
Permalink /patch/16813/
State New
Headers show

Comments

Klaus Schmidinger - Feb. 11, 2013, 3:30 p.m.
I just found out that there are some curly braces missing in lirc.c:



This caused an additional k_Repeat after a k_Release.

Klaus

Patch

--- lirc.c      2013/02/03 11:23:18     2.4
+++ lirc.c      2013/02/11 15:25:42
@@ -114,9 +114,10 @@ 
                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);

Privacy Policy