mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-06 07:00:59 +00:00
pbap_client: support disconnect while operation is ongoing
This commit is contained in:
parent
3f353c9b00
commit
0bd0d28918
@ -1166,7 +1166,7 @@ uint8_t pbap_connect(btstack_packet_handler_t handler, bd_addr_t addr, uint16_t
|
|||||||
|
|
||||||
uint8_t pbap_disconnect(uint16_t pbap_cid){
|
uint8_t pbap_disconnect(uint16_t pbap_cid){
|
||||||
UNUSED(pbap_cid);
|
UNUSED(pbap_cid);
|
||||||
if (pbap_client->state != PBAP_CONNECTED){
|
if (pbap_client->state < PBAP_CONNECTED){
|
||||||
return BTSTACK_BUSY;
|
return BTSTACK_BUSY;
|
||||||
}
|
}
|
||||||
pbap_client->state = PBAP_W2_SEND_DISCONNECT_REQUEST;
|
pbap_client->state = PBAP_W2_SEND_DISCONNECT_REQUEST;
|
||||||
|
Loading…
Reference in New Issue
Block a user