mesh: Fix typo leading to incorrect settings storage

This was intended to be an equality comparison and not an assignment.
This commit is contained in:
Michał Narajowski
2019-01-31 17:50:26 +01:00
parent 9b77b4cfcd
commit 0b18846387
+1 -1
View File
@@ -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;