mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-24 06:02:43 +00:00
mesh: fix use of wrong enum in mesh_lower_transport_deliver_to_higher_layer
This commit is contained in:
parent
ce16a729ff
commit
5236fe42ab
@ -181,18 +181,18 @@ static void mesh_lower_transport_deliver_to_higher_layer(void){
|
|||||||
mesh_pdu_t * pdu = (mesh_pdu_t *) btstack_linked_list_pop(&mesh_lower_transport_queued_for_higher_layer);
|
mesh_pdu_t * pdu = (mesh_pdu_t *) btstack_linked_list_pop(&mesh_lower_transport_queued_for_higher_layer);
|
||||||
|
|
||||||
switch (pdu->pdu_type){
|
switch (pdu->pdu_type){
|
||||||
case MESH_MSG_TYPE_NETWORK_PDU:
|
case MESH_PDU_TYPE_NETWORK:
|
||||||
// unsegmented pdu
|
// unsegmented pdu
|
||||||
mesh_lower_transport_higher_layer_pdu = (mesh_pdu_t *) pdu;
|
mesh_lower_transport_higher_layer_pdu = (mesh_pdu_t *) pdu;
|
||||||
pdu->pdu_type = MESH_PDU_TYPE_UNSEGMENTED;
|
pdu->pdu_type = MESH_PDU_TYPE_UNSEGMENTED;
|
||||||
// mesh_lower_transport_higher_layer_pdu = (mesh_pdu_t *) &lower_transport_access_incoming_singleton;
|
|
||||||
// lower_transport_access_incoming_singleton.pdu_header.pdu_type = MESH_PDU_TYPE_UNSEGMENTED;
|
|
||||||
// lower_transport_access_incoming_singleton.segment = (mesh_network_pdu_t*) pdu;
|
|
||||||
break;
|
break;
|
||||||
default:
|
case MESH_PDU_TYPE_SEGMENTED:
|
||||||
// segmented control or access pdu
|
// segmented control or access pdu
|
||||||
mesh_lower_transport_higher_layer_pdu = pdu;
|
mesh_lower_transport_higher_layer_pdu = pdu;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
btstack_assert(false);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
higher_layer_handler(MESH_TRANSPORT_PDU_RECEIVED, MESH_TRANSPORT_STATUS_SUCCESS, mesh_lower_transport_higher_layer_pdu);
|
higher_layer_handler(MESH_TRANSPORT_PDU_RECEIVED, MESH_TRANSPORT_STATUS_SUCCESS, mesh_lower_transport_higher_layer_pdu);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user