mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-04 11:32:47 +00:00
mesh: Reduce severity of unavoidable warnings
Reduces the severity of warnings that happen from normal behavior, or can't be prevented by the user: - "Composition page %u not available" in cfg_srv.c: According to the Mesh Profile Specification section 4.4.2.2.2, the client is expected to send page=0xff. Reduced to a debug message. - "Connectable advertising deferred" in proxy.c: Gets logged every 10 seconds when in a Mesh Proxy connection. This is not useful information unless the user is debugging the proxy module. Reduced to a debug message.
This commit is contained in:
@@ -120,9 +120,9 @@ static void dev_comp_data_get(struct bt_mesh_model *model,
|
||||
bt_hex(buf->om_data, buf->om_len));
|
||||
|
||||
page = net_buf_simple_pull_u8(buf);
|
||||
if (page != 0) {
|
||||
BT_WARN("Composition page %u not available", page);
|
||||
page = 0;
|
||||
if (page != 0U) {
|
||||
BT_DBG("Composition page %u not available", page);
|
||||
page = 0U;
|
||||
}
|
||||
|
||||
bt_mesh_model_msg_init(sdu, OP_DEV_COMP_DATA_STATUS);
|
||||
|
||||
@@ -1201,7 +1201,7 @@ static s32_t gatt_proxy_advertise(struct bt_mesh_subnet *sub)
|
||||
BT_DBG("");
|
||||
|
||||
if (conn_count == CONFIG_BT_MAX_CONN) {
|
||||
BT_WARN("Connectable advertising deferred (max connections)");
|
||||
BT_DBG("Connectable advertising deferred (max connections)");
|
||||
return remaining;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user