mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
components/bt: Fix iphone can't get song's informations
This commit is contained in:
parent
c7dc2570b4
commit
572c858935
@ -169,10 +169,6 @@ static void bt_av_hdl_avrc_evt(uint16_t event, void *p_param)
|
|||||||
uint8_t *bda = rc->conn_stat.remote_bda;
|
uint8_t *bda = rc->conn_stat.remote_bda;
|
||||||
ESP_LOGI(BT_AV_TAG, "AVRC conn_state evt: state %d, [%02x:%02x:%02x:%02x:%02x:%02x]",
|
ESP_LOGI(BT_AV_TAG, "AVRC conn_state evt: state %d, [%02x:%02x:%02x:%02x:%02x:%02x]",
|
||||||
rc->conn_stat.connected, bda[0], bda[1], bda[2], bda[3], bda[4], bda[5]);
|
rc->conn_stat.connected, bda[0], bda[1], bda[2], bda[3], bda[4], bda[5]);
|
||||||
|
|
||||||
if (rc->conn_stat.connected) {
|
|
||||||
bt_av_new_track();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ESP_AVRC_CT_PASSTHROUGH_RSP_EVT: {
|
case ESP_AVRC_CT_PASSTHROUGH_RSP_EVT: {
|
||||||
@ -191,6 +187,7 @@ static void bt_av_hdl_avrc_evt(uint16_t event, void *p_param)
|
|||||||
}
|
}
|
||||||
case ESP_AVRC_CT_REMOTE_FEATURES_EVT: {
|
case ESP_AVRC_CT_REMOTE_FEATURES_EVT: {
|
||||||
ESP_LOGI(BT_AV_TAG, "AVRC remote features 0x%x", rc->rmt_feats.feat_mask);
|
ESP_LOGI(BT_AV_TAG, "AVRC remote features 0x%x", rc->rmt_feats.feat_mask);
|
||||||
|
bt_av_new_track();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -170,10 +170,6 @@ static void bt_av_hdl_avrc_evt(uint16_t event, void *p_param)
|
|||||||
uint8_t *bda = rc->conn_stat.remote_bda;
|
uint8_t *bda = rc->conn_stat.remote_bda;
|
||||||
ESP_LOGI(BT_AV_TAG, "AVRC conn_state evt: state %d, [%02x:%02x:%02x:%02x:%02x:%02x]",
|
ESP_LOGI(BT_AV_TAG, "AVRC conn_state evt: state %d, [%02x:%02x:%02x:%02x:%02x:%02x]",
|
||||||
rc->conn_stat.connected, bda[0], bda[1], bda[2], bda[3], bda[4], bda[5]);
|
rc->conn_stat.connected, bda[0], bda[1], bda[2], bda[3], bda[4], bda[5]);
|
||||||
|
|
||||||
if (rc->conn_stat.connected) {
|
|
||||||
bt_av_new_track();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ESP_AVRC_CT_PASSTHROUGH_RSP_EVT: {
|
case ESP_AVRC_CT_PASSTHROUGH_RSP_EVT: {
|
||||||
@ -192,6 +188,7 @@ static void bt_av_hdl_avrc_evt(uint16_t event, void *p_param)
|
|||||||
}
|
}
|
||||||
case ESP_AVRC_CT_REMOTE_FEATURES_EVT: {
|
case ESP_AVRC_CT_REMOTE_FEATURES_EVT: {
|
||||||
ESP_LOGI(BT_AV_TAG, "AVRC remote features %x", rc->rmt_feats.feat_mask);
|
ESP_LOGI(BT_AV_TAG, "AVRC remote features %x", rc->rmt_feats.feat_mask);
|
||||||
|
bt_av_new_track();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user