summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/send-sms7
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])