avrcp: add response timer

This commit is contained in:
Milanka Ringwald 2025-03-26 09:51:39 +01:00
parent 67e243742c
commit 7722acd245
2 changed files with 3 additions and 0 deletions

View File

@ -574,6 +574,7 @@ static avrcp_connection_t * avrcp_create_connection(avrcp_role_t role, bd_addr_t
static void avrcp_finalize_connection(avrcp_connection_t * connection){
btstack_run_loop_remove_timer(&connection->retry_timer);
btstack_run_loop_remove_timer(&connection->controller_press_and_hold_cmd_timer);
btstack_run_loop_remove_timer(&connection->controller_response_cmd_timer);
btstack_linked_list_remove(&avrcp_connections, (btstack_linked_item_t*) connection);
btstack_memory_avrcp_connection_free(connection);
}

View File

@ -714,6 +714,8 @@ typedef struct {
bool controller_press_and_hold_cmd_active;
bool controller_press_and_hold_cmd_release;
btstack_timer_source_t controller_response_cmd_timer;
avrcp_remote_capabilities_state_t remote_capabilities_state;
bool controller_notifications_supported_by_target_suppress_emit_result;
uint16_t controller_initial_status_reported;