From a848cb653406417a758e28f59b65112ef233ef0d Mon Sep 17 00:00:00 2001 From: yangfeng Date: Tue, 1 Sep 2026 17:21:09 +0800 Subject: [PATCH] fix(bt): fix the OCF conflict of ESP_BT_VS_DISCARD_PING_OCF --- components/bt/include/common/btdm_bredr_vs.h | 10 +++++----- docs/en/api-reference/bluetooth/bt_vhci.rst | 2 +- docs/zh_CN/api-reference/bluetooth/bt_vhci.rst | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/bt/include/common/btdm_bredr_vs.h b/components/bt/include/common/btdm_bredr_vs.h index c51b095f5e8..b2193571249 100644 --- a/components/bt/include/common/btdm_bredr_vs.h +++ b/components/bt/include/common/btdm_bredr_vs.h @@ -97,11 +97,6 @@ struct bt_hci_vs_legacy_rem_auth_evt { */ #define ESP_BT_VS_PCA_OCF (0x0190) -/** -* @note The init function is `bt_stack_enableInternalDbgVsCmd(true)` -*/ -#define ESP_BT_VS_DISCARD_PING_OCF (0x0191) - /** * @note The init function is `bt_stack_enableInternalDbgVsCmd(true)` */ @@ -117,6 +112,11 @@ struct bt_hci_vs_legacy_rem_auth_evt { */ #define ESP_BT_VS_LMP_DBG_SAVE_OCF (0x019c) +/** +* @note The init function is `bt_stack_enableInternalDbgVsCmd(true)` +*/ +#define ESP_BT_VS_DISCARD_PING_OCF (0x019d) + // // @brief HCI VS Events for Espressif's Internal-Use Debugging // diff --git a/docs/en/api-reference/bluetooth/bt_vhci.rst b/docs/en/api-reference/bluetooth/bt_vhci.rst index b504bd55d96..5865628fbda 100644 --- a/docs/en/api-reference/bluetooth/bt_vhci.rst +++ b/docs/en/api-reference/bluetooth/bt_vhci.rst @@ -355,10 +355,10 @@ The following HCI VS debugging commands are implemented in Bluetooth Low Energy .. doxygendefine:: ESP_BT_VS_DTM_TX_TEST_END_OCF .. doxygendefine:: ESP_BT_VS_DTM_RX_TEST_END_OCF .. doxygendefine:: ESP_BT_VS_PCA_OCF - .. doxygendefine:: ESP_BT_VS_DISCARD_PING_OCF .. doxygendefine:: ESP_BT_VS_LMP_DBG_ENABLE_OCF .. doxygendefine:: ESP_BT_VS_SEND_LMP_OCF .. doxygendefine:: ESP_BT_VS_LMP_DBG_SAVE_OCF + .. doxygendefine:: ESP_BT_VS_DISCARD_PING_OCF HCI VS Events for Espressif's Internal-Use Debugging ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/zh_CN/api-reference/bluetooth/bt_vhci.rst b/docs/zh_CN/api-reference/bluetooth/bt_vhci.rst index 7e7aabd41fe..94be5a3bccf 100644 --- a/docs/zh_CN/api-reference/bluetooth/bt_vhci.rst +++ b/docs/zh_CN/api-reference/bluetooth/bt_vhci.rst @@ -355,10 +355,10 @@ .. doxygendefine:: ESP_BT_VS_DTM_TX_TEST_END_OCF .. doxygendefine:: ESP_BT_VS_DTM_RX_TEST_END_OCF .. doxygendefine:: ESP_BT_VS_PCA_OCF - .. doxygendefine:: ESP_BT_VS_DISCARD_PING_OCF .. doxygendefine:: ESP_BT_VS_LMP_DBG_ENABLE_OCF .. doxygendefine:: ESP_BT_VS_SEND_LMP_OCF .. doxygendefine:: ESP_BT_VS_LMP_DBG_SAVE_OCF + .. doxygendefine:: ESP_BT_VS_DISCARD_PING_OCF 乐鑫内部调试 HCI 事件 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^