Implements: https://github.com/esp8266/Arduino/pull/2883 Fixes: https://github.com/espressif/arduino-esp32/issues/313 Fixes: https://github.com/espressif/arduino-esp32/issues/344