mesh: Fix typo leading to incorrect settings storage
This was intended to be an equality comparison and not an assignment.
@@ -1019,7 +1019,7 @@ static void store_pending_hb_pub(void)
if (pub->dst == BT_MESH_ADDR_UNASSIGNED) {
str = NULL;
} else {
- val.indefinite = (pub->count = 0xffff);
+ val.indefinite = (pub->count == 0xffff);
val.dst = pub->dst;
val.period = pub->period;
val.ttl = pub->ttl;
