ble_mesh: stack: bug fix in bqb

This commit is contained in:
wangjialiang 2023-03-22 11:28:29 +08:00
parent f02b18b392
commit 9f36ad8ab6

View File

@ -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; static uint32_t bqb_log_flag = 0;
switch (operation) { switch (op) {
case BLE_MESH_BQB_TEST_FLAG_OP_GET: case BLE_MESH_BQB_TEST_FLAG_OP_GET:
break; break;
case BLE_MESH_BQB_TEST_FLAG_OP_SET: 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) 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); BT_ERR("Invalid BQB test flag mask 0x%08x", flag_mask);
return -EINVAL; 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) 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); BT_ERR("Invalid BQB test flag mask 0x%08x", flag_mask);
return false; return false;
} }