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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user