From 4c46f53a19256bc9eecb3f695aeb9c9c42a4691b Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 15 Sep 2010 13:11:31 +0200 Subject: [PATCH 1/1] fso-listen-for-calls.py: use SetFunctionality --- fso-listen-for-calls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fso-listen-for-calls.py b/fso-listen-for-calls.py index a0bc8f2..a2c3170 100755 --- a/fso-listen-for-calls.py +++ b/fso-listen-for-calls.py @@ -27,10 +27,11 @@ def fso_listen_for_calls(): usage_iface.RequestResource("GSM") gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd", "/org/freesmartphone/GSM/Device") + gsm_device_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Device") gsm_call_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Call") print "Set Functionality: full" - gsm_network_iface.SetFunctionality("full", True, "") + gsm_device_iface.SetFunctionality("full", True, "") gsm_call_iface.connect_to_signal('CallStatus', onCallStatus) @@ -42,7 +43,7 @@ def fso_listen_for_calls(): print "Interrupted" loop.quit() - gsm_network_iface.SetFunctionality("minimal", True, "") + gsm_device_iface.SetFunctionality("minimal", True, "") usage_iface.ReleaseResource("GSM") if __name__ == "__main__": -- 2.1.4