aboutsummaryrefslogtreecommitdiffstats
path: root/binding/telephony-binding.c
diff options
context:
space:
mode:
authorSaman Mahmoodi <mahmoudi.saman1@gmail.com>2021-02-16 17:00:28 +0330
committerSaman Mahmoodi <mahmoudi.saman1@gmail.com>2021-02-24 07:53:15 +0330
commit4739f747c8fbdeda94a400122651862cfdb522b7 (patch)
treec6beff585c2f88008a8c0795c62bdb7448e127e7 /binding/telephony-binding.c
parentc1fb92c004eb2bda1f214a3012fc661bd1797d7e (diff)
Fixing warnings and add last_dial to README.md
Bug-AGL: SPEC-3813 Signed-off-by: Saman Mahmoodi <mahmoudi.saman1@gmail.com> Change-Id: Ieb06aa4b7f81d50decbdc3614511516e2cf3785d
Diffstat (limited to 'binding/telephony-binding.c')
-rw-r--r--binding/telephony-binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/telephony-binding.c b/binding/telephony-binding.c
index 5eb3dc2..10c00fc 100644
--- a/binding/telephony-binding.c
+++ b/binding/telephony-binding.c
@@ -72,7 +72,7 @@ static void last_dial(afb_req_t request)
AFB_ERROR("dial: cannot dial with active call");
afb_req_fail(request, "active call", NULL);
} else {
- if (!ofono_voicecallmanager_last_dial(vcm)) {
+ if (ofono_voicecallmanager_last_dial(vcm)) {
afb_req_success(request, NULL, NULL);
} else {
AFB_ERROR("dial: failed to dial number\n");
@@ -89,7 +89,7 @@ static void send_tones(afb_req_t request)
AFB_ERROR("send_tones: cannot send tone without active call");
afb_req_fail(request, "there is no active call", NULL);
} else {
- if (!ofono_voicecallmanager_send_tones(vcm, value)) {
+ if (ofono_voicecallmanager_send_tones(vcm, value)) {
afb_req_success(request, NULL, NULL);
} else {
AFB_ERROR("send_tones: failed to send tone\n");