learning keys for LIRC fails on --no-kbd
Commit Message
André Weidemann wrote:
> Hi all,
> I am using vdr 1.4.0. I compiled it with REMOTE=LIRC.
> I only need LIRC to control VDR so I started it with the following command:
>
> ./vdr -u vdr --no-kbd
>
> After that VDR starts, but does not ask me to press a key on the remote
> for LIRC.
> Is there a way to only "teach" VDR the keys for LIRC or do I always have
> to start with the keyboard?
This might be the same problem as reported by Helmut Auer in a PM.
Please try the attached fix.
Klaus
Comments
Klaus Schmidinger wrote:
> This might be the same problem as reported by Helmut Auer in a PM.
> Please try the attached fix.
>
> Klaus
I have tested the patch and it works.
Thank you.
André
On Friday 12 May 2006 15:36, Klaus Schmidinger wrote:
> André Weidemann wrote:
> > Hi all,
> > I am using vdr 1.4.0. I compiled it with REMOTE=LIRC.
> > I only need LIRC to control VDR so I started it with the following
> > command:
> >
> > ./vdr -u vdr --no-kbd
> >
> > After that VDR starts, but does not ask me to press a key on the remote
> > for LIRC.
> > Is there a way to only "teach" VDR the keys for LIRC or do I always have
> > to start with the keyboard?
>
> This might be the same problem as reported by Helmut Auer in a PM.
> Please try the attached fix.
>
Works good. Will be included in next vdr-1.4.0 ebuild for Gentoo.
Matthias
@@ -182,11 +182,11 @@
repeatTimeout.Set(REPEATTIMEOUT);
return k;
}
- else if (!WaitMs || !keyPressed.TimedWait(mutex, WaitMs) && repeatTimeout.TimedOut()) {
- if (learning && UnknownCode) {
- *UnknownCode = unknownCode;
- unknownCode = NULL;
- }
+ else if (!WaitMs || !keyPressed.TimedWait(mutex, WaitMs) && repeatTimeout.TimedOut())
+ return kNone;
+ else if (learning && UnknownCode && unknownCode) {
+ *UnknownCode = unknownCode;
+ unknownCode = NULL;
return kNone;
}
}