mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 06:40:10 +00:00
mesh: store current features in config_heartbeat_publication_set_handler
This commit is contained in:
parent
2cf2bebb7e
commit
bfaaad1846
@ -1837,6 +1837,9 @@ static void config_heartbeat_publication_set_handler(mesh_model_t *mesh_model, m
|
|||||||
// store period as ms
|
// store period as ms
|
||||||
requested_publication.period_ms = heartbeat_pwr2(requested_publication.period_log) * 1000;
|
requested_publication.period_ms = heartbeat_pwr2(requested_publication.period_log) * 1000;
|
||||||
|
|
||||||
|
// store current features
|
||||||
|
requested_publication.active_features = mesh_foundation_get_features();
|
||||||
|
|
||||||
mesh_heartbeat_publication_t * mesh_heartbeat_publication = &((mesh_configuration_server_model_context_t*) mesh_model->model_data)->heartbeat_publication;
|
mesh_heartbeat_publication_t * mesh_heartbeat_publication = &((mesh_configuration_server_model_context_t*) mesh_model->model_data)->heartbeat_publication;
|
||||||
|
|
||||||
// validate fields
|
// validate fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user