diff --git a/components/bt/include/esp32c2/include/esp_bt_cfg.h b/components/bt/include/esp32c2/include/esp_bt_cfg.h index ca309f7b9f..a6eacac671 100644 --- a/components/bt/include/esp32c2/include/esp_bt_cfg.h +++ b/components/bt/include/esp32c2/include/esp_bt_cfg.h @@ -128,8 +128,8 @@ extern "C" { #define HCI_UART_EN 0 // hci ram mode #endif -#ifdef CONFIG_BT_NIMBLE_SLEEP_ENABLE -#define NIMBLE_SLEEP_ENABLE CONFIG_BT_NIMBLE_SLEEP_ENABLE +#ifdef CONFIG_BT_LE_SLEEP_ENABLE +#define NIMBLE_SLEEP_ENABLE CONFIG_BT_LE_SLEEP_ENABLE #else #define NIMBLE_SLEEP_ENABLE 0 #endif diff --git a/components/bt/include/esp32h2/include/esp_bt_cfg.h b/components/bt/include/esp32h2/include/esp_bt_cfg.h index ca309f7b9f..a6eacac671 100644 --- a/components/bt/include/esp32h2/include/esp_bt_cfg.h +++ b/components/bt/include/esp32h2/include/esp_bt_cfg.h @@ -128,8 +128,8 @@ extern "C" { #define HCI_UART_EN 0 // hci ram mode #endif -#ifdef CONFIG_BT_NIMBLE_SLEEP_ENABLE -#define NIMBLE_SLEEP_ENABLE CONFIG_BT_NIMBLE_SLEEP_ENABLE +#ifdef CONFIG_BT_LE_SLEEP_ENABLE +#define NIMBLE_SLEEP_ENABLE CONFIG_BT_LE_SLEEP_ENABLE #else #define NIMBLE_SLEEP_ENABLE 0 #endif