rymanluk commented on a change in pull request #583: Mesh fixes and improvements URL: https://github.com/apache/mynewt-core/pull/583#discussion_r141806332
########## File path: net/nimble/host/mesh/src/cfg.c ########## @@ -2886,18 +2886,22 @@ static void heartbeat_sub_set(struct bt_mesh_model *model, sub_period == 0x00) { cfg->hb_sub.src = BT_MESH_ADDR_UNASSIGNED; cfg->hb_sub.dst = BT_MESH_ADDR_UNASSIGNED; + cfg->hb_sub.min_hops = 0; + cfg->hb_sub.max_hops = 0; + period_ms = 0; } else { cfg->hb_sub.src = sub_src; cfg->hb_sub.dst = sub_dst; + cfg->hb_sub.min_hops = 0x7f; + cfg->hb_sub.max_hops = 0; + period_ms = hb_pwr2(sub_period, 1) * 1000; } - BT_DBG("period_ms %u", period_ms); + cfg->hb_sub.count = 0; Review comment: indentation isssue ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services