From b74edc46d02bbb5d44d58cfddd05aa74f9735e5e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 8 Apr 2024 13:34:10 +0200 Subject: [PATCH] example/a2dp_sink/source_demo: add missing cast --- example/a2dp_sink_demo.c | 2 +- example/a2dp_source_demo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/a2dp_sink_demo.c b/example/a2dp_sink_demo.c index a9386c358..bdb520ba8 100644 --- a/example/a2dp_sink_demo.c +++ b/example/a2dp_sink_demo.c @@ -991,7 +991,7 @@ static void avrcp_target_packet_handler(uint8_t packet_type, uint16_t channel, u break; case AVRCP_SUBEVENT_OPERATION: - operation_id = avrcp_subevent_operation_get_operation_id(packet); + operation_id = (avrcp_operation_id_t) avrcp_subevent_operation_get_operation_id(packet); button_state = avrcp_subevent_operation_get_button_pressed(packet) > 0 ? "PRESS" : "RELEASE"; switch (operation_id){ case AVRCP_OPERATION_ID_VOLUME_UP: diff --git a/example/a2dp_source_demo.c b/example/a2dp_source_demo.c index 02b7d9591..392908159 100644 --- a/example/a2dp_source_demo.c +++ b/example/a2dp_source_demo.c @@ -848,7 +848,7 @@ static void avrcp_target_packet_handler(uint8_t packet_type, uint16_t channel, u // status = avrcp_target_now_playing_info(avrcp_cid); // break; case AVRCP_SUBEVENT_OPERATION: - operation_id = avrcp_subevent_operation_get_operation_id(packet); + operation_id = (avrcp_operation_id_t) avrcp_subevent_operation_get_operation_id(packet); button_pressed = avrcp_subevent_operation_get_button_pressed(packet) > 0; button_state = button_pressed ? "PRESS" : "RELEASE";