]> granicus.if.org Git - esp-idf/commitdiff
components/bt: Fix error in checking AVRC connected
authorbaohongde <baohongde@espressif.com>
Fri, 18 Oct 2019 13:37:11 +0000 (21:37 +0800)
committerbot <bot@espressif.com>
Fri, 25 Oct 2019 02:50:31 +0000 (02:50 +0000)
components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c

index 0e4d0e49223ad8be2a9885b47b45ee9634aff897..52a8962a490007d079eccf22ea74267dd92302d8 100644 (file)
@@ -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);
 }