Merge branch 'bugfix/btdm_check_avrc_connected_error' into 'master'

components/bt: Fix error in checking AVRC connected

See merge request espressif/esp-idf!6415
pull/4251/head
Jiang Jiang Jian 2019-10-26 20:42:04 +08:00
commit 87e1dfa31e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -178,14 +178,14 @@ bool btc_avrc_ct_init_p(void)
bool btc_avrc_tg_connected_p(void)
{
return (s_rc_tg_init == BTC_RC_TG_INIT_MAGIC) &&
(btc_rc_cb.rc_connected = TRUE) &&
(btc_rc_cb.rc_connected == TRUE) &&
(btc_rc_cb.rc_features & BTA_AV_FEAT_RCCT);
}
bool btc_avrc_ct_connected_p(void)
{
return (s_rc_ct_init == BTC_RC_CT_INIT_MAGIC) &&
(btc_rc_cb.rc_connected = TRUE) &&
(btc_rc_cb.rc_connected == TRUE) &&
(btc_rc_cb.rc_features & BTA_AV_FEAT_RCTG);
}