fixes: https://github.com/espressif/arduino-esp32/issues/51
fixes: https://github.com/espressif/arduino-esp32/issues/146