From fe72b7929c2f0b5dbac3040b303d195923735fc8 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 6 Oct 2010 09:43:35 +0200 Subject: fixes bug #593 use i2c_device from /proc/bus/nim_sockets for automatic cable scan --- lib/python/Components/NimManager.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components/NimManager.py') diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index f934ed50..67a1abc8 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -769,6 +769,9 @@ class NimManager: def getNim(self, slotid): return self.nim_slots[slotid] + + def getI2CDevice(self, slotid): + return self.nim_slots[slotid].getI2C() def getNimListOfType(self, type, exception = -1): # returns a list of indexes for NIMs compatible to the given type, except for 'exception' -- cgit v1.2.3