Skip to content

Commit a8e7e94

Browse files
committed
hopefully fixes issue with esp32c3
1 parent 8253e56 commit a8e7e94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builder/esp32.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,9 @@ def compile(*args): # NOQA
915915
data += (
916916
'\n'
917917
'#ifndef MP_USB_OTG\n'
918+
'#if CONFIG_IDF_TARGET_ESP32C3\n'
919+
'#define MP_USB_OTG (CONFIG_USB_OTG_SUPPORTED)\n'
920+
'#else'
918921
'#define MP_USB_OTG (0)\n'
919922
'#endif'
920923
)

0 commit comments

Comments
 (0)