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:20:09 UTC

[mynewt-nimble] 31/31: mesh: Fix macro in net.c

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 a4d3fb4368eb1952739121317f0aa64d54e1bcb4
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Fri May 7 14:06:21 2021 +0200

    mesh: Fix macro in net.c
---
 nimble/host/mesh/src/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/mesh/src/net.c b/nimble/host/mesh/src/net.c
index db97b95..bbe186e 100644
--- a/nimble/host/mesh/src/net.c
+++ b/nimble/host/mesh/src/net.c
@@ -344,7 +344,7 @@ static void bt_mesh_net_local(struct ble_npl_event *work)
 
 static const struct bt_mesh_net_cred *net_tx_cred_get(struct bt_mesh_net_tx *tx)
 {
-#if defined(CONFIG_BT_MESH_LOW_POWER)
+#if IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)
 	if (tx->friend_cred && bt_mesh_lpn_established()) {
 		return &bt_mesh.lpn.cred[SUBNET_KEY_TX_IDX(tx->sub)];
 	}