Bluetooth: Mesh: Fix Capabilities Status message with OOB upload enabled

The `else` case was incorrectly excluded by preprocessor.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
Pavel Vasilyev 2023-10-12 10:36:45 +02:00 committed by Johan Hedberg
commit 5cf6218c62

View file

@ -233,11 +233,10 @@ static int handle_capabilities_get(struct bt_mesh_model *mod, struct bt_mesh_msg
net_buf_simple_add_mem(&rsp, srv->oob_schemes.schemes,
srv->oob_schemes.count);
} else
#else
#endif
{
net_buf_simple_add_u8(&rsp, 0);
}
#endif
bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL);