From 5cc101a486a5597c5143fce2078c2493e2aa7e82 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sun, 5 May 2019 21:36:16 -0700 Subject: binding: bluetooth-map: remove disconnect message Disconnect message currently would be triggered with every bluetooth device disconnection. So remove until it checks the UUID of the respective device. Bug-AGL: SPEC-2351 Change-Id: If2a814c56fe7b98b2fde2664add32d66bb7034db Signed-off-by: Matt Ranostay --- binding/bluetooth-map-api.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'binding') diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c index c72e7e2..4ede612 100644 --- a/binding/bluetooth-map-api.c +++ b/binding/bluetooth-map-api.c @@ -438,7 +438,7 @@ static void discovery_result_cb(void *closure, struct json_object *result, static void process_connection_event(afb_api_t api, struct json_object *object) { struct json_object *val = NULL, *props = NULL; - const char *action, *device; + const char *action; json_object_object_get_ex(object, "action", &val); if (!val) @@ -461,14 +461,6 @@ static void process_connection_event(afb_api_t api, struct json_object *object) args, discovery_result_cb, NULL); return; } - - json_object_object_get_ex(object, "device", &val); - if (!val) - return; - - device = json_object_get_string(val); - - AFB_NOTICE("MAP device disconnected: %s", device); } static int init(afb_api_t api) -- cgit 1.2.3-korg