From a8da9c1b96f7b4dfaf62f53c58244af6d4f366e9 Mon Sep 17 00:00:00 2001 From: Le-Andrew Date: Fri, 15 Jun 2018 19:32:43 +1000 Subject: [PATCH] Fixed typos on booleans. Merges https://github.com/espressif/esp-idf/pull/2067 --- components/bt/bluedroid/api/include/api/esp_gatt_defs.h | 2 +- components/bt/bluedroid/bta/gatt/bta_gatts_co.c | 2 +- components/bt/bluedroid/bta/include/bta/bta_gatts_co.h | 2 +- components/bt/bluedroid/stack/btm/btm_ble.c | 2 +- components/driver/include/driver/rtc_io.h | 2 +- components/esp32/esp_timer_esp32.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/bt/bluedroid/api/include/api/esp_gatt_defs.h b/components/bt/bluedroid/api/include/api/esp_gatt_defs.h index 77cdcd6526..7053f266f2 100644 --- a/components/bt/bluedroid/api/include/api/esp_gatt_defs.h +++ b/components/bt/bluedroid/api/include/api/esp_gatt_defs.h @@ -422,7 +422,7 @@ typedef struct { * @brief service element */ typedef struct { - bool is_primary; /*!< The service flag, ture if the service is primary service, else is secondly service */ + bool is_primary; /*!< The service flag, true if the service is primary service, else is secondly service */ uint16_t start_handle; /*!< The start handle of the service */ uint16_t end_handle; /*!< The end handle of the service */ esp_bt_uuid_t uuid; /*!< The uuid of the service */ diff --git a/components/bt/bluedroid/bta/gatt/bta_gatts_co.c b/components/bt/bluedroid/bta/gatt/bta_gatts_co.c index 1bc7881cc9..2130005a11 100644 --- a/components/bt/bluedroid/bta/gatt/bta_gatts_co.c +++ b/components/bt/bluedroid/bta/gatt/bta_gatts_co.c @@ -125,7 +125,7 @@ void bta_gatts_co_update_handle_range(BOOLEAN is_add, tBTA_GATTS_HNDL_RANGE *p_h ** ** Returns TRUE - if the request is processed successfully and ** the response is returned in p_rsp. -** FASLE - if the request can not be processed +** FALSE - if the request can not be processed ** *******************************************************************************/ BOOLEAN bta_gatts_co_srv_chg(tBTA_GATTS_SRV_CHG_CMD cmd, diff --git a/components/bt/bluedroid/bta/include/bta/bta_gatts_co.h b/components/bt/bluedroid/bta/include/bta/bta_gatts_co.h index 79c70c8b0e..9d81d6461d 100644 --- a/components/bt/bluedroid/bta/include/bta/bta_gatts_co.h +++ b/components/bt/bluedroid/bta/include/bta/bta_gatts_co.h @@ -55,7 +55,7 @@ extern void bta_gatts_co_update_handle_range(BOOLEAN is_add, tBTA_GATTS_HNDL_RAN ** ** Returns TRUE - if the request is processed successfully and ** the response is returned in p_rsp. -** FASLE - if the request can not be processed +** FALSE - if the request can not be processed ** *******************************************************************************/ extern BOOLEAN bta_gatts_co_srv_chg(tBTA_GATTS_SRV_CHG_CMD cmd, diff --git a/components/bt/bluedroid/stack/btm/btm_ble.c b/components/bt/bluedroid/stack/btm/btm_ble.c index 838aaec6c2..664a3d2cb9 100644 --- a/components/bt/bluedroid/stack/btm/btm_ble.c +++ b/components/bt/bluedroid/stack/btm/btm_ble.c @@ -1105,7 +1105,7 @@ BOOLEAN btm_ble_get_enc_key_type(BD_ADDR bd_addr, UINT8 *p_key_types) ** ** Description This function is called to read the local DIV ** -** Returns TURE - if a valid DIV is availavle +** Returns TRUE - if a valid DIV is availavle *******************************************************************************/ BOOLEAN btm_get_local_div (BD_ADDR bd_addr, UINT16 *p_div) { diff --git a/components/driver/include/driver/rtc_io.h b/components/driver/include/driver/rtc_io.h index 710c040e52..f1c321b189 100644 --- a/components/driver/include/driver/rtc_io.h +++ b/components/driver/include/driver/rtc_io.h @@ -35,7 +35,7 @@ typedef enum { * @brief Determine if the specified GPIO is a valid RTC GPIO. * * @param gpio_num GPIO number - * @return true if GPIO is valid for RTC GPIO use. talse otherwise. + * @return true if GPIO is valid for RTC GPIO use. false otherwise. */ inline static bool rtc_gpio_is_valid_gpio(gpio_num_t gpio_num) { diff --git a/components/esp32/esp_timer_esp32.c b/components/esp32/esp_timer_esp32.c index 3d63cf2bd8..d42c8cfdc6 100644 --- a/components/esp32/esp_timer_esp32.c +++ b/components/esp32/esp_timer_esp32.c @@ -201,7 +201,7 @@ uint64_t IRAM_ATTR esp_timer_impl_get_time() ticks_per_us = s_timer_ticks_per_us; /* Read them again and compare */ - /* In this function, do not call timer_count_reload() when overflow is ture. + /* In this function, do not call timer_count_reload() when overflow is true. * Because there's remain count enough to allow FRC_TIMER_COUNT_REG grow */ if (REG_READ(FRC_TIMER_COUNT_REG(1)) > timer_val &&