Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 0f82343

Browse files
committed
[BT] Fix UART monitor init
1 parent 708fb29 commit 0f82343

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

main/bluetooth/mon.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ void bt_mon_init(void) {
5252
};
5353

5454
printf("# %s: set uart pin tx:%d\n", __FUNCTION__, BT_MON_TX_PIN);
55-
printf("# %s: set baud_rate:%ld.\n", __FUNCTION__, uart_cfg.baud_rate);
55+
printf("# %s: set baud_rate:%d.\n", __FUNCTION__, uart_cfg.baud_rate);
5656

57-
ESP_ERROR_CHECK(uart_driver_delete(port_num));
58-
ESP_ERROR_CHECK(uart_driver_install(port_num, UART_HW_FIFO_LEN(port_num) * 2, 0, 0, NULL, 0));
59-
ESP_ERROR_CHECK(uart_param_config(port_num, &uart_cfg));
60-
ESP_ERROR_CHECK(uart_set_pin(port_num, BT_MON_TX_PIN, BT_MON_RX_PIN, BT_MON_RTS_PIN, BT_MON_CTS_PIN));
57+
ESP_ERROR_CHECK(uart_driver_delete(uart_port));
58+
ESP_ERROR_CHECK(uart_driver_install(uart_port, UART_HW_FIFO_LEN(port_num) * 2, 0, 0, NULL, 0));
59+
ESP_ERROR_CHECK(uart_param_config(uart_port, &uart_cfg));
60+
ESP_ERROR_CHECK(uart_set_pin(uart_port, BT_MON_TX_PIN, BT_MON_RX_PIN, BT_MON_RTS_PIN, BT_MON_CTS_PIN));
6161
#endif /* CONFIG_BLUERETRO_BT_H4_TRACE */
6262

6363
const esp_app_desc_t *app_desc = esp_app_get_description();

0 commit comments

Comments
 (0)