Merges https://github.com/espressif/esp-idf/pull/8248 * Original commit: espressif/esp-idf@f46dffca62