mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
mesh: fix compile without asserts
This commit is contained in:
parent
b16fda24f6
commit
51b20e0121
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user