example/a2dp_sink/source_demo: add missing cast

This commit is contained in:
Matthias Ringwald 2024-04-08 13:34:10 +02:00
parent 4dbe0476f2
commit b74edc46d0
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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";