diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | common.c | 23 |
2 files changed, 24 insertions, 0 deletions
@@ -11,6 +11,7 @@ VDR Plugin 'text2skin' Revision History - Commit common_c.diff most probably by Christian Winninger (unknown source) - Commit status_c.diff most probably by Gerald Dachs (unknown source) - Commit static-std-string.diff by Lars Hanisch (unknown source) +- Commit text2skin-signal.patch by tomas@vdr-portal.de (unknown source) 2011-11-06: Version 1.3.2 @@ -87,6 +87,8 @@ const cRecording *GetRecordingByFileName(const char *FileName) return (FileName) ? Recordings.GetByName(FileName) : NULL; } +#if VDRVERSNUM < 20000 + int GetFrontendSTR(void) { uint16_t value = 0; @@ -114,6 +116,27 @@ int GetFrontendSNR(void) return value / 655; } +#endif + +#if VDRVERSNUM >= 20000 +int GetFrontendSTR(void) +{ + int SignalStrength = cDevice::ActualDevice()->SignalStrength(); + if ( SignalStrength < 0) + return 0; + + return SignalStrength; +} + +int GetFrontendSNR(void) +{ + int SignalQuality = cDevice::ActualDevice()->SignalQuality(); + if ( SignalQuality < 0) + return 0; + + return SignalQuality; +} +#endif bool GetFrontendHasLock(void) { |