mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
rename hfp_handle_rfcomm_event to hfp_handle_rfcomm_data
This commit is contained in:
parent
6b7b88195c
commit
ba7fd8c4e5
@ -779,7 +779,7 @@ static void hfp_run_for_context(hfp_connection_t *context){
|
||||
}
|
||||
}
|
||||
|
||||
static void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
static void hfp_handle_rfcomm_data(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
hfp_connection_t * context = get_hfp_connection_context_for_rfcomm_cid(channel);
|
||||
if (!context) return;
|
||||
int pos;
|
||||
@ -800,7 +800,7 @@ static void hfp_run(){
|
||||
static void packet_handler(void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
switch (packet_type){
|
||||
case RFCOMM_DATA_PACKET:
|
||||
hfp_handle_rfcomm_event(packet_type, channel, packet, size);
|
||||
hfp_handle_rfcomm_data(packet_type, channel, packet, size);
|
||||
break;
|
||||
case HCI_EVENT_PACKET:
|
||||
hfp_handle_hci_event(hfp_callback, packet_type, packet, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user