[mythtv] Re:Patch to use LEDs attached to LCD display
Steven J. Finnegan
sjf at controlsoftcorp.com
Sat Sep 6 18:13:12 EDT 2003
>On Saturday 06 September 2003 06:46 pm, Steven J. Finnegan wrote:
> > Here is a patch to enable the LEDs attached to LCDs controlled by LCDd.
> >
> > This patch will turn on LED #1 if capture card #1 is being used, LED #2
> for
> > capture card #2, etc. For this purpose, "in use" means either recording a
> > scheduled program, or displaying live TV.
>
>Looks mostly ok, but it seems you're assuming that the recorder numbers are 0
>through the number of recorders currently active, which I don't think is what
>you want.. Say, for example, if you have two tuners, #0 and #1. #1 is
>recording, #0 is inactive. QUERY_ISRECORDING will return 1, since one tuner
>card is recording. You then ask if tuner card #0 is recording, which it
>isn't, so no LEDs will get lit...
>
>Isaac
>Isaac:
>No, that's not quite what I am doing... (at least that's not what I
>intended...)
>
>Since there is no way (that I can see) to query the total number of
>recorders in the system, I am first requesting the number of recorders
>that are currently active. (one, in your example). I am then querying
>each recorder in order until I have accumulated that number of active
>recorders. Does this make more sense now?
>
>Also, I believe the recorders are numbered starting with 1, not 0, correct?
>
>sjf
>
>Ah, ok. Makes slightly more sense.. I'll get stuff committed to CVS soon,
>anyway.
>
> > Also, I believe the recorders are numbered starting with 1, not 0,
> correct?
>
>Not necessarily. They may have gaps in the numbering as well.
>
>Isaac
_______________________________________________
Uh, what happens if I request status on a recorder that doesn't exist? Does
this crash the backend?
sjf
***************************************************************
Steven J. Finnegan, President
Controlsoft Corporation
Phone: (760) 747-5632
WebSite: www.controlsoftcorp.com
E-mail: sjf at controlsoftcorp.com
***************************************************************
More information about the mythtv-dev
mailing list