fix compile

This commit is contained in:
Milanka Ringwald 2016-02-12 15:44:43 +01:00
parent bd23fc3eaf
commit e33e86d340
2 changed files with 3 additions and 3 deletions

View File

@ -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){

View File

@ -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();