hci, mesh_lower_transport: fix warnings

This commit is contained in:
Matthias Ringwald 2020-08-18 14:40:22 +02:00
parent 057ab60c9e
commit 05002aec5b
2 changed files with 2 additions and 4 deletions

View File

@ -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:

View File

@ -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