Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: displaying the signal level and the snr



Hello!

Am Freitag, 29. März 2002 11:52 schrieb Dariush Forouher:
> i've patched the files, but it doesn't work.
>
> vdr print out in syslog: Signal Strength: 0dBm, SNR: 0 dB
> on channels with perfect image.
> And I can't see any changes on the OSD.

Maybe you forgot this:

> and the last modification in menu.c, in the function 
> cDisplayChannel::DisplayChannel, at the end:

> const char *date = DayDateTime();
> cDvbApi *DvbApi = cDvbApi::PrimaryDvbApi;
> int signalStrength = DvbApi->GetSignalStrength();
> float snr = DvbApi->GetSignalNoiseRatio()/1000000;
> snprintf(buffer, BufSize, "SS:%ddBm SNR:%2.1fdB %s", signalStrength, snr, 
date);
> Interface->Write(-strlen(buffer), 0, buffer);

Alessio: You should learn how to create a patch file. It's not that difficult!


Andi

-- 
Web:   http://www.flood-net.de/
Mail:  flood@flood-net.de
Phone: +49-(0)-30-680577-44
Linux opens doors, not windows!
http://www.bundestux.de/   http://counter.li.org/



Home | Main Index | Thread Index