mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 15:44:32 +00:00
hfp_hf: fix length check in hfp_hf_init_hf_indicators
This commit is contained in:
parent
8cd06fb6a7
commit
ea63a72063
@ -1565,7 +1565,7 @@ void hfp_hf_init_supported_features(uint32_t supported_features){
|
||||
|
||||
void hfp_hf_init_hf_indicators(int indicators_nr, const uint16_t * indicators){
|
||||
btstack_assert(hfp_hf_indicators_nr < HFP_MAX_NUM_INDICATORS);
|
||||
if (hfp_hf_indicators_nr > HFP_MAX_NUM_CODECS) return;
|
||||
if (hfp_hf_indicators_nr > HFP_MAX_NUM_INDICATORS) return;
|
||||
|
||||
hfp_hf_indicators_nr = indicators_nr;
|
||||
int i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user