gatt_client: don't emit event on error from api function gatt_client_discover_characteristic_descriptors

This commit is contained in:
Matthias Ringwald 2023-06-15 11:44:57 +02:00
parent 4740230f55
commit 7045d3c050

View File

@ -2216,7 +2216,6 @@ uint8_t gatt_client_discover_characteristic_descriptors(btstack_packet_handler_t
}
if (characteristic->value_handle == characteristic->end_handle){
emit_gatt_complete_event(gatt_client, ATT_ERROR_SUCCESS);
return ERROR_CODE_SUCCESS;
}
gatt_client->callback = callback;