diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index 26c17ae3c4..eb8ed7cfc4 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -290,7 +290,7 @@ menu "GAP" config BT_NIMBLE_MAX_CCCDS int "Maximum number of CCC descriptors to save across reboots" default 8 - depends on BT_NIMBLE_ENABLED && BT_NIMBLE_NVS_PERSIST + depends on BT_NIMBLE_ENABLED help Defines maximum number of CCC descriptors to save diff --git a/components/esp_hid/src/nimble_hidh.c b/components/esp_hid/src/nimble_hidh.c index 134baca889..93bc0279a9 100644 --- a/components/esp_hid/src/nimble_hidh.c +++ b/components/esp_hid/src/nimble_hidh.c @@ -289,7 +289,7 @@ desc_disced(uint16_t conn_handle, const struct ble_gatt_error *error, } /* this api does the following things : -** does service, characteristic and discriptor discovery and +** does service, characteristic and descriptor discovery and ** fills the hid device information accordingly in dev */ static void read_device_services(esp_hidh_dev_t *dev) { @@ -466,7 +466,7 @@ static void read_device_services(esp_hidh_dev_t *dev) chr_end_handle, desc_disced, descr_result); WAIT_CB(); if (status != 0) { - ESP_LOGE(TAG, "failed to find discriptors for characteristic : %d", c); + ESP_LOGE(TAG, "failed to find descriptors for characteristic : %d", c); assert(status == 0); } dcount = dscs_discovered; @@ -949,6 +949,7 @@ esp_hidh_dev_t *esp_ble_hidh_dev_open(uint8_t *bda, uint8_t address_type) dev->report_write = esp_ble_hidh_dev_report_write; dev->report_read = esp_ble_hidh_dev_report_read; dev->dump = esp_ble_hidh_dev_dump; + dev->connected = true; /* perform service discovery and fill the report maps */ read_device_services(dev);