(cherry picked from commit 192f13135488a2f8a386ace2dad69da59e81f5b5) Co-authored-by: Shen Weilong <shenweilong@espressif.com>