(cherry picked from commit 6b09de6dbf4039b1e489aff6869ce40ee70de3a3) Co-authored-by: zhiweijian <zhiweijian@espressif.com>