From 562c232a4c172aa1f6fcf11765531c464f5c832a Mon Sep 17 00:00:00 2001 From: srimaldia Date: Thu, 22 Dec 2016 18:42:54 +0900 Subject: Add status icon for bluetooth Change-Id: I598fd21f66620a518d5cc4068c352c31961834bd Signed-off-by: srimaldia --- bluetooth-api.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bluetooth-api.c') diff --git a/bluetooth-api.c b/bluetooth-api.c index f7e2d9a..487a79f 100644 --- a/bluetooth-api.c +++ b/bluetooth-api.c @@ -52,6 +52,8 @@ static void bt_power (struct afb_req request) if (0==ret) { + + setHMIStatus(ACTIVE); (TRUE==power_value)?json_object_object_add (jresp, "power", json_object_new_string ("on")) : json_object_object_add (jresp, "power", json_object_new_string ("off")); } @@ -72,6 +74,7 @@ static void bt_power (struct afb_req request) return; } json_object_object_add (jresp, "power", json_object_new_string ("on")); + setHMIStatus(ACTIVE); } /* "?value=" parameter is "0" or "false" */ @@ -84,6 +87,7 @@ static void bt_power (struct afb_req request) } json_object_object_add (jresp, "power", json_object_new_string ("off")); + setHMIStatus(INACTIVE); } else { -- cgit 1.2.3-korg