mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
hfp_hf: return error when indicator is not supported
This commit is contained in:
parent
892de2076e
commit
fd8c009856
@ -2312,10 +2312,14 @@ uint8_t hfp_hf_set_hf_indicator(hci_con_handle_t acl_handle, int assigned_number
|
||||
hfp_connection->generic_status_update_bitmap |= (1 << i);
|
||||
// send update
|
||||
hfp_hf_run_for_context(hfp_connection);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (i == hfp_hf_indicators_nr){
|
||||
return ERROR_CODE_COMMAND_DISALLOWED;
|
||||
}
|
||||
return ERROR_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user