(cherry picked from commit decb24f940d9d47e4eef7449748c956500d9449c) Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>