From 51b20e0121db377f449066c70a814416193a4bea Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 10 Oct 2019 21:59:45 +0200 Subject: [PATCH] mesh: fix compile without asserts --- src/mesh/mesh_upper_transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesh/mesh_upper_transport.c b/src/mesh/mesh_upper_transport.c index eeaa14054..37a9bbce7 100644 --- a/src/mesh/mesh_upper_transport.c +++ b/src/mesh/mesh_upper_transport.c @@ -1009,8 +1009,7 @@ void mesh_upper_transport_init(){ void mesh_upper_transport_send_access_pdu(mesh_pdu_t *pdu){ if (pdu->pdu_type == MESH_PDU_TYPE_NETWORK){ - mesh_network_pdu_t * network_pdu = (mesh_network_pdu_t *) pdu; - btstack_assert(network_pdu->len >= 9); + btstack_assert( ((mesh_network_pdu_t *) pdu)->len >= 9); } btstack_linked_list_add_tail(&upper_transport_outgoing, (btstack_linked_item_t*) pdu);