From 9f36ad8ab642657625078ae2ecb13f4f3b9a0600 Mon Sep 17 00:00:00 2001 From: wangjialiang Date: Wed, 22 Mar 2023 11:28:29 +0800 Subject: [PATCH] ble_mesh: stack: bug fix in bqb --- components/bt/esp_ble_mesh/mesh_common/mesh_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_common/mesh_util.c b/components/bt/esp_ble_mesh/mesh_common/mesh_util.c index de077ee168..24904023b9 100644 --- a/components/bt/esp_ble_mesh/mesh_common/mesh_util.c +++ b/components/bt/esp_ble_mesh/mesh_common/mesh_util.c @@ -56,7 +56,7 @@ static uint32_t bt_mesh_bqb_test_flag(uint8_t op, uint32_t value) { static uint32_t bqb_log_flag = 0; - switch (operation) { + switch (op) { case BLE_MESH_BQB_TEST_FLAG_OP_GET: break; case BLE_MESH_BQB_TEST_FLAG_OP_SET: @@ -77,7 +77,7 @@ uint32_t bt_mesh_bqb_test_flag_get(void) int bt_mesh_bqb_test_flag_set(uint32_t flag_mask) { - if (module_mask > BLE_MESH_BQB_TEST_LOG_LEVEL_OUTPUT_NONE) { + if (flag_mask > BLE_MESH_BQB_TEST_LOG_LEVEL_OUTPUT_NONE) { BT_ERR("Invalid BQB test flag mask 0x%08x", flag_mask); return -EINVAL; } @@ -87,7 +87,7 @@ int bt_mesh_bqb_test_flag_set(uint32_t flag_mask) bool bt_mesh_bqb_test_flag_check(uint32_t flag_mask) { - if (module_mask > BLE_MESH_BQB_TEST_LOG_LEVEL_OUTPUT_NONE) { + if (flag_mask > BLE_MESH_BQB_TEST_LOG_LEVEL_OUTPUT_NONE) { BT_ERR("Invalid BQB test flag mask 0x%08x", flag_mask); return false; }