mirror of git://git.sysmocom.de/ofono
test: Add modem argument to cancel-ussd
This commit is contained in:
parent
fa88c1a6b0
commit
f746cba504
|
@ -10,7 +10,10 @@ manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||||
|
|
||||||
modems = manager.GetModems()
|
modems = manager.GetModems()
|
||||||
|
|
||||||
path, properties = modems[0]
|
if (len(sys.argv) == 2):
|
||||||
|
path = sys.argv[1]
|
||||||
|
else:
|
||||||
|
path = modems[0][0]
|
||||||
|
|
||||||
ussd = dbus.Interface(bus.get_object('org.ofono', path),
|
ussd = dbus.Interface(bus.get_object('org.ofono', path),
|
||||||
'org.ofono.SupplementaryServices')
|
'org.ofono.SupplementaryServices')
|
||||||
|
|
Loading…
Reference in New Issue