mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
hci, mesh_lower_transport: fix warnings
This commit is contained in:
parent
057ab60c9e
commit
05002aec5b
@ -4389,7 +4389,7 @@ int hci_send_cmd_packet(uint8_t *packet, int size){
|
||||
break;
|
||||
}
|
||||
// track outgoing connection
|
||||
hci_stack->outgoing_addr_type = packet[8]; // peer addres type
|
||||
hci_stack->outgoing_addr_type = (bd_addr_type_t) packet[8]; // peer addres type
|
||||
reverse_bd_addr( &packet[9], hci_stack->outgoing_addr); // peer address
|
||||
break;
|
||||
case HCI_OPCODE_HCI_LE_CREATE_CONNECTION_CANCEL:
|
||||
|
@ -939,13 +939,11 @@ static void mesh_lower_transport_run(void){
|
||||
}
|
||||
|
||||
void mesh_lower_transport_send_pdu(mesh_pdu_t *pdu){
|
||||
mesh_network_pdu_t * network_pdu;
|
||||
mesh_segmented_pdu_t * segmented_pdu;
|
||||
switch (pdu->pdu_type){
|
||||
case MESH_PDU_TYPE_UPPER_UNSEGMENTED_ACCESS:
|
||||
case MESH_PDU_TYPE_UPPER_UNSEGMENTED_CONTROL:
|
||||
network_pdu = (mesh_network_pdu_t *) pdu;
|
||||
btstack_assert(network_pdu->len >= 9);
|
||||
btstack_assert(((mesh_network_pdu_t *) pdu)->len >= 9);
|
||||
break;
|
||||
case MESH_PDU_TYPE_SEGMENTED:
|
||||
// set num retries, set of segments to send
|
||||
|
Loading…
x
Reference in New Issue
Block a user