r272 - trunk/software/py-odeviced/odeviced/modules
smartphones-commits at lists.linuxtogo.org
smartphones-commits at lists.linuxtogo.org
Mon Apr 28 18:19:34 CEST 2008
Author: mickeylauer
Date: 2008-04-28 18:19:34 +0200 (Mon, 28 Apr 2008)
New Revision: 272
Modified:
trunk/software/py-odeviced/odeviced/modules/kernel26.py
Log:
odeviced: allow PowerSupplyApm to coexist with class device power supplies
Modified: trunk/software/py-odeviced/odeviced/modules/kernel26.py
===================================================================
--- trunk/software/py-odeviced/odeviced/modules/kernel26.py 2008-04-28 16:02:29 UTC (rev 271)
+++ trunk/software/py-odeviced/odeviced/modules/kernel26.py 2008-04-28 16:19:34 UTC (rev 272)
@@ -289,7 +289,7 @@
if os.path.exists( powerpath ):
for ( index, node ) in enumerate( os.listdir( powerpath ) ):
LOG( LOG_DEBUG, "scanning", index, node )
- objects.append( PowerSupply( bus, index, "%s/%s" % ( powerpath, node ) ) )
+ objects.append( PowerSupply( bus, index+1, "%s/%s" % ( powerpath, node ) ) )
# scan for real time clocks
rtcpath = "/sys/class/rtc"
More information about the Smartphones-commits
mailing list