Handle the recovery only for wearable profile 71/237371/1 accepted/tizen/unified/20200701.123251 submit/tizen/20200630.223543
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 29 Jun 2020 23:33:19 +0000 (08:33 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 29 Jun 2020 23:33:19 +0000 (08:33 +0900)
Change-Id: Id421632f3ac756d88bc8cf36649840a1d21d0009
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service-adaptation/services/bt-service-main.c

index d6e3b0f..ea38343 100644 (file)
@@ -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) {