1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

- Fixed a crash bug caused by dBm signal strength not being found correctly.

- Fixed a crash caused by an incorrectly named variable in wicd.py.
This commit is contained in:
imdano
2007-11-18 14:19:50 +00:00
parent 3eea8cde55
commit b61018cc17
3 changed files with 9 additions and 7 deletions

View File

@@ -562,15 +562,16 @@ class ConnectionWizard(dbus.service.Object):
strength = int(self.wifi.GetSignalStrength())
except:
strength = 0
print 'returning current signal strength',strength
return strength
#end function GetCurrentSignalStrength
@dbus.service.method('org.wicd.daemon.wireless')
def GetCurrentDBMStrength(self):
''' returns the current dbm signal strength '''
try:
dbm_strength = int(self.wifi.GetDBMStrength())
except:
dbm_strength = 0
return dbm_strength
@dbus.service.method('org.wicd.daemon.wireless')