Signed-off-by: Kirill Chalov <kirill.chalov@espressif.com> Merges https://github.com/espressif/esp-idf/pull/4147