mesh: Fix macro in net.c

This commit is contained in:
Krzysztof Kopyściński
2021-05-27 10:19:29 +02:00
committed by Michał Narajowski
parent 5ea192af01
commit a4d3fb4368
+1 -1
View File
@@ -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)];
}