MINOR: Added debug messages
git-svn-id: http://www.neo1973-germany.de/svn@90 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
ab9af88105
commit
25e1cb447f
1 changed files with 4 additions and 2 deletions
|
@ -75,9 +75,11 @@ class BatteryPanel(gtk.VBox):
|
|||
self.q = self.f.readline().rstrip('\n')
|
||||
except(IOError):
|
||||
print "ERROR: could not read capacity!"
|
||||
# self.q = "0"
|
||||
self.q = "0"
|
||||
finally:
|
||||
self.f.close()
|
||||
|
||||
# print "q was %s" % self.q
|
||||
return (int(self.q))
|
||||
|
||||
# Check current battery voltage
|
||||
|
@ -145,7 +147,7 @@ class BatteryPanel(gtk.VBox):
|
|||
gtk.VBox.__init__(self, False, 0)
|
||||
|
||||
self.v = 0;
|
||||
self.q = 0;
|
||||
#self.q = 0;
|
||||
|
||||
|
||||
# add a VBox
|
||||
|
|
Loading…
Reference in a new issue