From 22de9c0bbfb31ca70d982043da926d51f573e4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Tue, 2 Jan 2018 14:10:07 +0100 Subject: [PATCH] blemesh: Fix compiler error when building without PB_ADV Error: repos/apache-mynewt-core/net/nimble/host/mesh/src/prov.c: In function 'bt_mesh_prov_reset_link': repos/apache-mynewt-core/net/nimble/host/mesh/src/prov.c:1590:9: error: 'struct prov_link' has no member named 'rx' link.rx.buf = bt_mesh_proxy_get_buf(); X-Original-Commit: 1fe74b20f54f7e0ab9e6f62e05234cd5a1dc4c22 --- nimble/host/mesh/src/prov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c index ac4702b41..623464305 100644 --- a/nimble/host/mesh/src/prov.c +++ b/nimble/host/mesh/src/prov.c @@ -131,6 +131,7 @@ struct prov_link { #if (MYNEWT_VAL(BLE_MESH_PB_ADV)) u32_t id; /* Link ID */ +#endif struct { u8_t id; /* Transaction ID */ @@ -154,7 +155,6 @@ struct prov_link { /* Retransmit timer */ struct k_delayed_work retransmit; } tx; -#endif }; struct prov_rx {