pbap_client: remove incoming flag

This commit is contained in:
Matthias Ringwald 2024-07-18 10:31:43 +02:00
parent 52d486c671
commit 5e10dbf931
2 changed files with 1 additions and 3 deletions

View File

@ -94,7 +94,7 @@ static void pbap_client_emit_connected_event(pbap_client_t * context, uint8_t st
pos += 6;
little_endian_store_16(event,pos,context->con_handle);
pos += 2;
event[pos++] = context->incoming;
event[pos++] = 0;
event[1] = pos - 2;
if (pos != sizeof(event)) log_error("goep_client_emit_connected_event size %u", pos);
context->client_handler(HCI_EVENT_PACKET, context->goep_cid, &event[0], pos);
@ -828,7 +828,6 @@ static void pbap_packet_handler_hci(uint8_t *packet, uint16_t size){
pbap_client = pbap_client_for_cid(goep_subevent_connection_opened_get_goep_cid(packet));
btstack_assert(pbap_client != NULL);
status = goep_subevent_connection_opened_get_status(packet);
pbap_client->incoming = 0;
goep_subevent_connection_opened_get_bd_addr(packet, pbap_client->bd_addr);
if (status){
log_info("pbap: connection failed %u", status);

View File

@ -119,7 +119,6 @@ typedef struct pbap_client {
pbap_client_state_t state;
bd_addr_t bd_addr;
hci_con_handle_t con_handle;
uint8_t incoming;
uint16_t goep_cid;
btstack_packet_handler_t client_handler;
int request_number;