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