diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2016-12-22 21:54:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2016-12-22 21:54:27 +0000 |
commit | a0a4afb1f26bf6d8c75e7f4907dd6c3b0771b0f6 (patch) | |
tree | afcc5bbb578172cbe2e5c31680fe95f53361190b /binding-bluetooth/bluetooth-api.c | |
parent | 9b6ef23ba4a5cc3389dacad20220dd4308986da7 (diff) | |
parent | 3e63800b18c385cb0b52c593daa1f535498d01f0 (diff) |
Merge "Add status icon for bluetooth"
Diffstat (limited to 'binding-bluetooth/bluetooth-api.c')
-rw-r--r-- | binding-bluetooth/bluetooth-api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binding-bluetooth/bluetooth-api.c b/binding-bluetooth/bluetooth-api.c index f7e2d9a..487a79f 100644 --- a/binding-bluetooth/bluetooth-api.c +++ b/binding-bluetooth/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 { |