mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 13:20:50 +00:00
mesh: assert on minimal pdu len in void mesh_network_send_pdu
This commit is contained in:
parent
48321319fb
commit
7b71b67d6f
@ -965,7 +965,13 @@ void mesh_network_send_pdu(mesh_network_pdu_t * network_pdu){
|
||||
|
||||
if (network_pdu->len > 29){
|
||||
printf("too long, %u\n", network_pdu->len);
|
||||
return;
|
||||
while(1);
|
||||
}
|
||||
|
||||
// network pdu without payload and minimal mic = 13 bytes
|
||||
if (network_pdu->len <13){
|
||||
printf("too short, %u\n", network_pdu->len);
|
||||
while(1);
|
||||
}
|
||||
|
||||
// setup callback
|
||||
|
Loading…
x
Reference in New Issue
Block a user