mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-01 10:13:29 +00:00
mesh: fix crash on send segment after transport pdu tx complete
This commit is contained in:
parent
094df9d022
commit
bec71e2448
@ -773,6 +773,8 @@ static void mesh_upper_transport_setup_segment(mesh_transport_pdu_t * transport_
|
||||
}
|
||||
|
||||
static void mesh_upper_transport_send_next_segment(void){
|
||||
if (!upper_transport_outgoing_pdu) return;
|
||||
|
||||
int ctl = mesh_transport_ctl(upper_transport_outgoing_pdu);
|
||||
uint16_t max_segment_len = ctl ? 8 : 12; // control 8 bytes (64 bit NetMic), access 12 bytes (32 bit NetMIC)
|
||||
uint8_t seg_n = (upper_transport_outgoing_pdu->len - 1) / max_segment_len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user