From b401bbc4d643e1dd32a3fd183217472e346a6084 Mon Sep 17 00:00:00 2001 From: Yulong Date: Thu, 18 May 2017 02:11:42 -0400 Subject: [PATCH] component/bt: change the esp_ble_gattc_cache_refresh API return value from esp_gatt_status_t to esp_err_t. --- components/bt/bluedroid/api/esp_gattc_api.c | 2 +- components/bt/bluedroid/api/include/esp_gattc_api.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/bluedroid/api/esp_gattc_api.c b/components/bt/bluedroid/api/esp_gattc_api.c index 1b4714d437..b80966cd86 100644 --- a/components/bt/bluedroid/api/esp_gattc_api.c +++ b/components/bt/bluedroid/api/esp_gattc_api.c @@ -482,7 +482,7 @@ esp_gatt_status_t esp_ble_gattc_unregister_for_notify (esp_gatt_if_t gattc_if, return (btc_transfer_context(&msg, &arg, sizeof(btc_ble_gattc_args_t), NULL) == BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL); } -esp_gatt_status_t esp_ble_gattc_cache_refresh(esp_bd_addr_t remote_bda) +esp_err_t esp_ble_gattc_cache_refresh(esp_bd_addr_t remote_bda) { btc_msg_t msg; btc_ble_gattc_args_t arg; diff --git a/components/bt/bluedroid/api/include/esp_gattc_api.h b/components/bt/bluedroid/api/include/esp_gattc_api.h index 43267f311e..c2cae797b7 100644 --- a/components/bt/bluedroid/api/include/esp_gattc_api.h +++ b/components/bt/bluedroid/api/include/esp_gattc_api.h @@ -636,11 +636,11 @@ esp_gatt_status_t esp_ble_gattc_unregister_for_notify (esp_gatt_if_t gattc_if, * @param[in] remote_bda: remote device BD address. * * @return -* - ESP_OK: unregister succeeds +* - ESP_OK: success * - other: failed * */ -esp_gatt_status_t esp_ble_gattc_cache_refresh(esp_bd_addr_t remote_bda); +esp_err_t esp_ble_gattc_cache_refresh(esp_bd_addr_t remote_bda); #ifdef __cplusplus }