X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6f461023bf90fd89dd96a8463b5cdeb2f3fd0feb..7caa114b900d8cac5c57e59df971da9280112a1f:/lib/python/Components/SystemInfo.py diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index 844c9544..50663324 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -1,11 +1,14 @@ +from enigma import eDVBResourceManager + SystemInfo = { } #FIXMEE... def getNumVideoDecoders(): from Tools.Directories import fileExists idx = 0 - while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'): + while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'r'): idx += 1 return idx SystemInfo["NumVideoDecoders"] = getNumVideoDecoders() +SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance().canMeasureFrontendInputPower()