From 99c0715962de881fdc8853ce9801bf28cf09c4f0 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 6d83e3bee1..354c5a9939 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 5550ffe969..9df64bf268 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