From 3ece525e26a7813ce8d82deacc19f9d8bd695952 Mon Sep 17 00:00:00 2001 From: luomanruo Date: Mon, 24 Jul 2023 10:51:08 +0800 Subject: [PATCH] ble update for doc: bugfix for esp32c6 and esp32h2 --- components/bt/controller/esp32c6/bt.c | 2 +- components/bt/controller/esp32h2/bt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/controller/esp32c6/bt.c b/components/bt/controller/esp32c6/bt.c index 001db9ff27..e9ef174fe6 100644 --- a/components/bt/controller/esp32c6/bt.c +++ b/components/bt/controller/esp32c6/bt.c @@ -389,7 +389,7 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, b for (int i = 0; i < len; i++) { ets_printf("%02x,", addr[i]); } - + } else { for (int i = 0; i < len; i++) { ets_printf("%02x,", addr[i]); diff --git a/components/bt/controller/esp32h2/bt.c b/components/bt/controller/esp32h2/bt.c index 8ce4d6422d..edc590dedc 100644 --- a/components/bt/controller/esp32h2/bt.c +++ b/components/bt/controller/esp32h2/bt.c @@ -381,14 +381,14 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, b for (int i = 0; i < len; i++) { ets_printf("%02x,", addr[i]); } - + } else { for (int i = 0; i < len; i++) { ets_printf("%02x,", addr[i]); } ets_printf("\n"); } -} +} #endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED #ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART