Skip to content

Commit 8480fb3

Browse files
committed
fix(bt/bluedroid): Fixed the incorrect error code returned
when receiving an invalid command
1 parent d7dd068 commit 8480fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/bt/host/bluedroid/stack/avrc/avrc_pars_tg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_
7171
p++; /* skip the reserved byte */
7272
BE_STREAM_TO_UINT16 (len, p);
7373
if ((len + 4) != (p_msg->vendor_len)) {
74-
status = AVRC_STS_INTERNAL_ERR;
74+
status = AVRC_STS_NOT_FOUND;
7575
}
7676

7777
if (status != AVRC_STS_NO_ERROR) {

0 commit comments

Comments
 (0)