From 21f56b1fdcc435e85bf332b90fa9e2b68d30091f Mon Sep 17 00:00:00 2001 From: 0ut4t1m3 Date: Mon, 20 Jan 2025 19:00:06 +0930 Subject: [PATCH] Update esp32.py Define USB_SERIAL_JTAG_PACKET_SZ_BYTES to prevent errors when building with --enable-jtag-repl=y --- builder/esp32.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/esp32.py b/builder/esp32.py index 1f5f54d9..e41bf92a 100644 --- a/builder/esp32.py +++ b/builder/esp32.py @@ -1120,7 +1120,8 @@ def update_mpconfigport(): '#ifdef MICROPY_HW_ESP_USB_SERIAL_JTAG', '#undef MICROPY_HW_ESP_USB_SERIAL_JTAG', '#endif', - f'#define MICROPY_HW_ESP_USB_SERIAL_JTAG ({int(enable_jtag_repl.lower() == "y")})' + f'#define MICROPY_HW_ESP_USB_SERIAL_JTAG ({int(enable_jtag_repl.lower() == "y")})', + '#define USB_SERIAL_JTAG_PACKET_SZ_BYTES (64)' ]) repl_data.extend([