mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-12 19:13:36 +00:00
fix compile
This commit is contained in:
parent
bd23fc3eaf
commit
e33e86d340
@ -136,14 +136,14 @@ static void emit_event(uint8_t event_subtype, uint8_t value){
|
||||
}
|
||||
|
||||
static void emit_event_audio_connected(uint8_t status, uint16_t handle){
|
||||
if (!hsp_hs_callback) return;
|
||||
if (!hsp_ag_callback) return;
|
||||
uint8_t event[6];
|
||||
event[0] = HCI_EVENT_HSP_META;
|
||||
event[1] = sizeof(event) - 2;
|
||||
event[2] = HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE;
|
||||
event[3] = status;
|
||||
bt_store_16(event, 4, handle);
|
||||
(*hsp_hs_callback)(event, sizeof(event));
|
||||
(*hsp_ag_callback)(event, sizeof(event));
|
||||
}
|
||||
|
||||
void hsp_ag_create_sdp_record(uint8_t * service, int rfcomm_channel_nr, const char * name){
|
||||
|
@ -203,7 +203,7 @@ static int stdin_process(struct data_source *ds){
|
||||
break;
|
||||
case 'b':
|
||||
printf("Press user button\n");
|
||||
hsp_hs_press_button();
|
||||
hsp_hs_send_button_press();
|
||||
break;
|
||||
default:
|
||||
show_usage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user