]> granicus.if.org Git - esp-idf/commitdiff
Fixed typos on booleans.
authorLe-Andrew <andrewle2501@gmail.com>
Fri, 15 Jun 2018 09:32:43 +0000 (19:32 +1000)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 9 Jul 2018 06:36:06 +0000 (14:36 +0800)
Merges https://github.com/espressif/esp-idf/pull/2067

components/bt/bluedroid/api/include/api/esp_gatt_defs.h
components/bt/bluedroid/bta/gatt/bta_gatts_co.c
components/bt/bluedroid/bta/include/bta/bta_gatts_co.h
components/bt/bluedroid/stack/btm/btm_ble.c
components/driver/include/driver/rtc_io.h
components/esp32/esp_timer_esp32.c

index 77cdcd6526d2658a8f687c915cdee1cd1927fe2e..7053f266f27a1d3826a7d0b52d4f230739b8e7fb 100644 (file)
@@ -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 */
index 1bc7881cc920337a6d2e62780c8a392668edd5fa..2130005a11dcc86ddbef913f1eb9109488562dc1 100644 (file)
@@ -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,
index 79c70c8b0e6c1228ced77c7325e03a7caa5527e2..9d81d6461d1da83ed3dfb4e29d25ff15a3d9fdd7 100644 (file)
@@ -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,
index 838aaec6c2b1a6da25267048563b5b4a8e0efa9d..664a3d2cb9d3072397e3712bd04ee09be6d33751 100644 (file)
@@ -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)
 {
index 710c040e52719d5aad0e6409fea442f4e9c39b8d..f1c321b18983bd90ae64b99a1543aeded9511576 100644 (file)
@@ -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)
 {
index 3d63cf2bd85fc2a372b1469d438339a4de5e4cd9..d42c8cfdc62431a7761a329c4ccf28e263ef5d65 100644 (file)
@@ -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 &&