From de166facd7552f193461cd9bbf7d212459979ca3 Mon Sep 17 00:00:00 2001 From: lly Date: Fri, 25 Dec 2020 16:04:22 +0800 Subject: [PATCH 1/2] ble_mesh: stack: Update mesh max conn macro when using bluedroid --- .../bt/esp_ble_mesh/mesh_core/include/mesh_bearer_adapt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/include/mesh_bearer_adapt.h b/components/bt/esp_ble_mesh/mesh_core/include/mesh_bearer_adapt.h index cc3d2b7bfc..25068554d0 100644 --- a/components/bt/esp_ble_mesh/mesh_core/include/mesh_bearer_adapt.h +++ b/components/bt/esp_ble_mesh/mesh_core/include/mesh_bearer_adapt.h @@ -22,7 +22,7 @@ extern "C" { /* BLE Mesh Max Connection Count */ #ifdef CONFIG_BT_BLUEDROID_ENABLED -#define BLE_MESH_MAX_CONN MIN(CONFIG_BT_ACL_CONNECTIONS, CONFIG_BTDM_CTRL_BLE_MAX_CONN) +#define BLE_MESH_MAX_CONN CONFIG_BT_ACL_CONNECTIONS #endif #ifdef CONFIG_BT_NIMBLE_ENABLED From c44dc1f262c72132d71654989878c92fc11b8a70 Mon Sep 17 00:00:00 2001 From: lly Date: Fri, 25 Dec 2020 16:08:26 +0800 Subject: [PATCH 2/2] ble_mesh: stack: Fix compile warning with BIT macro --- components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h b/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h index 1de3030c74..d57efa904e 100644 --- a/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h +++ b/components/bt/esp_ble_mesh/mesh_common/include/mesh_util.h @@ -15,6 +15,7 @@ #define _BLE_MESH_UTIL_H_ #include +#include "esp_bit_defs.h" #include "mesh_types.h" #ifdef __cplusplus