You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2021/05/27 08:19:57 UTC
[mynewt-nimble] 19/31: mesh: Fix restoring fast period divisor from
settings
This is an automated email from the ASF dual-hosted git repository.
naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 6253904845b4ab8afdc41eec21ff96211bed5106
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Mon Mar 29 14:27:03 2021 +0200
mesh: Fix restoring fast period divisor from settings
The Health Fast Period Divisor is stored within
the model publish parameters on the access layer.
The opposite part for divisor restoring has been missed.
this is port of 73e1c6a77d71f8b51746946f78f0b3525101e1c0
---
nimble/host/mesh/src/settings.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/nimble/host/mesh/src/settings.c b/nimble/host/mesh/src/settings.c
index cb583eb..903230d 100644
--- a/nimble/host/mesh/src/settings.c
+++ b/nimble/host/mesh/src/settings.c
@@ -552,6 +552,7 @@ static int mod_set_pub(struct bt_mesh_model *mod, char *val)
mod->pub->ttl = 0;
mod->pub->period = 0;
mod->pub->retransmit = 0;
+ mod->pub->period_div = pub.period_div;
mod->pub->count = 0;
BT_DBG("Cleared publication for model");