diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-06-07 13:14:50 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-07 13:14:50 -0500 |
commit | 0a14493673c2f1bb667da213dc169c76b938bc37 (patch) | |
tree | 05edd4830666c28b11c11f2b74f5964edc61eba6 /test/send-sms | |
parent | 27cdb7254d50444575284f5070fb79984cf9e324 (diff) | |
download | ofono-0a14493673c2f1bb667da213dc169c76b938bc37.tar.bz2 |
test: Refactor previous commit
Diffstat (limited to 'test/send-sms')
-rwxr-xr-x | test/send-sms | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/send-sms b/test/send-sms index 4f1d6581..162a691d 100755 --- a/test/send-sms +++ b/test/send-sms @@ -16,9 +16,8 @@ manager = dbus.Interface(bus.get_object('org.ofono', path), 'org.ofono.SmsManager') if len(sys.argv) == 4: - if sys.argv[3] == "1": - manager.SetProperty("UseDeliveryReports", dbus.Boolean(1)) - manager.SendMessage(sys.argv[1], sys.argv[2]) + manager.SetProperty("UseDeliveryReports", + dbus.Boolean(int(sys.argv[1]))) + manager.SendMessage(sys.argv[1], sys.argv[2]) else: - manager.SetProperty("UseDeliveryReports", dbus.Boolean(0)) manager.SendMessage(sys.argv[1], sys.argv[2]) |