Skip to content

Commit 21f56b1

Browse files
authored
Update esp32.py
Define USB_SERIAL_JTAG_PACKET_SZ_BYTES to prevent errors when building with --enable-jtag-repl=y
1 parent babbd84 commit 21f56b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/esp32.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,8 @@ def update_mpconfigport():
11201120
'#ifdef MICROPY_HW_ESP_USB_SERIAL_JTAG',
11211121
'#undef MICROPY_HW_ESP_USB_SERIAL_JTAG',
11221122
'#endif',
1123-
f'#define MICROPY_HW_ESP_USB_SERIAL_JTAG ({int(enable_jtag_repl.lower() == "y")})'
1123+
f'#define MICROPY_HW_ESP_USB_SERIAL_JTAG ({int(enable_jtag_repl.lower() == "y")})',
1124+
'#define USB_SERIAL_JTAG_PACKET_SZ_BYTES (64)'
11241125
])
11251126

11261127
repl_data.extend([

0 commit comments

Comments
 (0)