mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
mesh: set retransmit count only in mesh_model_publication_setup_publication
This commit is contained in:
parent
a596f54e8f
commit
520482d5e5
@ -932,9 +932,9 @@ static void mesh_model_publication_setup_publication(mesh_publication_model_t *
|
||||
}
|
||||
}
|
||||
|
||||
// assumes retransmit_count is valid
|
||||
static void mesh_model_publication_setup_retransmission(mesh_publication_model_t * publication_model, uint32_t now){
|
||||
uint8_t num_retransmits = mesh_model_publication_retransmit_count(publication_model->retransmit);
|
||||
if (num_retransmits == 0) return;
|
||||
if (publication_model->retransmit_count == 0) return;
|
||||
|
||||
// calc next retransmit time
|
||||
uint32_t retransmission_ms = now + mesh_model_publication_retransmission_period_ms(publication_model->retransmit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user