mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
example/a2dp_sink/source_demo: add missing cast
This commit is contained in:
parent
4dbe0476f2
commit
b74edc46d0
@ -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:
|
||||
|
@ -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";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user