From 1995abf236d34dd3264435a35f2c9c128cf3afaa Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 20 May 2007 23:47:19 +0000 Subject: invent proper signalPowerdB enums and use them --- lib/python/Components/Sources/FrontendStatus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/python/Components/Sources') diff --git a/lib/python/Components/Sources/FrontendStatus.py b/lib/python/Components/Sources/FrontendStatus.py index 60b70102..1af03f95 100644 --- a/lib/python/Components/Sources/FrontendStatus.py +++ b/lib/python/Components/Sources/FrontendStatus.py @@ -13,7 +13,7 @@ class FrontendStatus(Source): self.poll_timer.start(1000) def invalidate(self): - self.snr = self.agc = self.ber = self.lock = None + self.snr = self.agc = self.ber = self.lock = self.snr_db = None def updateFrontendStatus(self): status = self.getFrontendStatus() @@ -21,6 +21,7 @@ class FrontendStatus(Source): self.invalidate() else: self.snr = status.get("tuner_signal_power") + self.snr_db = status.get("tuner_signal_power_db") self.agc = status.get("tuner_signal_quality") self.ber = status.get("tuner_bit_error_rate") self.lock = status.get("tuner_locked") -- cgit v1.2.3