mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
mesh: fix compile warning when compiling without btstack assert
This commit is contained in:
parent
a6c191f73a
commit
f58c0c23eb
@ -416,6 +416,7 @@ static void mesh_network_relay_message(mesh_network_pdu_t * network_pdu){
|
||||
|
||||
uint8_t net_mic_len = ctl_in_bit_7 ? 8 : 4;
|
||||
btstack_assert((network_pdu->len + net_mic_len) <= 29);
|
||||
UNUSED(net_mic_len);
|
||||
|
||||
// queue up
|
||||
btstack_linked_list_add_tail(&network_pdus_queued, (btstack_linked_item_t *) network_pdu);
|
||||
|
@ -732,7 +732,8 @@ static void mesh_upper_transport_send_access(mesh_upper_transport_pdu_t * upper_
|
||||
// flatten segmented pdu into crypto buffer
|
||||
uint16_t payload_len = mesh_upper_pdu_flatten(upper_pdu, incoming_pdu_singleton.access.data, sizeof(incoming_pdu_singleton.access.data));
|
||||
btstack_assert(payload_len == upper_pdu->len);
|
||||
|
||||
UNUSED(payload_len);
|
||||
|
||||
// Dump PDU
|
||||
printf("[+] Upper transport, send upper (un)segmented Access PDU - dest %04x, seq %06x\n", upper_pdu->dst, upper_pdu->seq);
|
||||
mesh_print_hex("Access Payload", incoming_pdu_singleton.access.data, upper_pdu->len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user