mirror of git://git.sysmocom.de/ofono
Fix not being able to set some attributes
This commit is contained in:
parent
087472c402
commit
6ea7dba3b6
|
@ -72,6 +72,10 @@ if __name__ == "__main__":
|
|||
sys.exit(1)
|
||||
else:
|
||||
try:
|
||||
if property == 'AccumulatedCallMeterMaximum':
|
||||
newvalue = int(newvalue)
|
||||
elif property == 'PricePerUnit':
|
||||
newvalue = float(newvalue)
|
||||
cm.SetProperty(property, newvalue, pin)
|
||||
except dbus.DBusException, e:
|
||||
print "Unable to set property: ", e
|
||||
|
|
Loading…
Reference in New Issue