From 0b1884638727bc3248dd28348f4dc571551d75ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Wed, 30 Jan 2019 15:11:39 +0100 Subject: [PATCH] mesh: Fix typo leading to incorrect settings storage This was intended to be an equality comparison and not an assignment. --- nimble/host/mesh/src/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/settings.c b/nimble/host/mesh/src/settings.c index 0f75c305c..e5734ba3a 100644 --- a/nimble/host/mesh/src/settings.c +++ b/nimble/host/mesh/src/settings.c @@ -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;