From: DoHyun Pyun Date: Mon, 29 Jun 2020 23:33:19 +0000 (+0900) Subject: Handle the recovery only for wearable profile X-Git-Tag: accepted/tizen/unified/20200701.123251^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F237371%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Handle the recovery only for wearable profile Change-Id: Id421632f3ac756d88bc8cf36649840a1d21d0009 Signed-off-by: DoHyun Pyun --- diff --git a/bt-service-adaptation/services/bt-service-main.c b/bt-service-adaptation/services/bt-service-main.c index d6e3b0f..ea38343 100644 --- a/bt-service-adaptation/services/bt-service-main.c +++ b/bt-service-adaptation/services/bt-service-main.c @@ -187,12 +187,14 @@ static gboolean __bt_check_bt_service(void *data) le_status = _bt_adapter_get_le_status(); BT_DBG("State: %d, LE State: %d", status, le_status); - if (status == BT_ACTIVATED) { - BT_INFO("Need to recover because bt has been activated without bt-service"); - ret = _bt_recover_adapter(); - if (ret != BLUETOOTH_ERROR_NONE) - BT_ERR("_bt_recover_adapter is failed : %d", ret); - return FALSE; + if (TIZEN_PROFILE_WEARABLE) { + if (status == BT_ACTIVATED) { + BT_INFO("Need to recover because bt has been activated without bt-service"); + ret = _bt_recover_adapter(); + if (ret != BLUETOOTH_ERROR_NONE) + BT_ERR("_bt_recover_adapter is failed : %d", ret); + return FALSE; + } } if (TIZEN_PROFILE_TV) {