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

[mynewt-nimble] 23/31: mesh: Fix condition is net_tx_cred_get

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 7a5f6ec320eacc3b9bc35820bf88194243ea1078
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Mon Apr 26 09:15:56 2021 +0200

    mesh: Fix condition is net_tx_cred_get
    
    Preprocessor directives using defined() in mesh should use
    identifiers defined in glue.h
---
 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 2e1d6dc..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 defined(BLE_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)];
 	}