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:28 UTC

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

This is an automated email from the ASF dual-hosted git repository.

naraj pushed a commit to branch revert-958-mesh_sync_march21
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 9e91968dbafa8b899ce37bf5fd6181fb6bf93357
Author: MichaƂ Narajowski <mi...@codecoup.pl>
AuthorDate: Thu May 27 10:20:19 2021 +0200

    Revert "mesh: Fix macro in net.c"
    
    This reverts commit a4d3fb4368eb1952739121317f0aa64d54e1bcb4.
---
 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 bbe186e..db97b95 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 IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)
+#if defined(CONFIG_BT_MESH_LOW_POWER)
 	if (tx->friend_cred && bt_mesh_lpn_established()) {
 		return &bt_mesh.lpn.cred[SUBNET_KEY_TX_IDX(tx->sub)];
 	}