adafruit / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
8 stars 4 forks source link

temporarily walkaround for tinyusb init for v4.2 #7

Closed hathach closed 3 years ago

hathach commented 3 years ago

add walkaround for v4.2 tusb_init() incorrect returned value. This issue is originated by tinyusb stack with incorrect value returned (bool instead of error code). This is fix by tinyusb but IDF v4.2 hasn't updated yet, this is already fixed in IDF v4.3. This walkaround forcely assume tinyusb init is always successful. This will help to keep the current code running when the IDF v4.3 is rolled out.

see also https://github.com/espressif/arduino-esp32/issues/4728