From eb0018a3268409c15cb0e31759fcfd4e0b210738 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 30 Aug 2026 21:32:30 +0300 Subject: [PATCH] Always disable blocking in the console output On USB connection, Serial.print may block the main loop if the USB is connected but isn't read, breaking the firmware logic. --- flix/console.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flix/console.ino b/flix/console.ino index c69a950..4a0e539 100644 --- a/flix/console.ino +++ b/flix/console.ino @@ -67,6 +67,9 @@ HWCDC HWCDCSerial; void setupConsole() { Serial.begin(115200); +#if SOC_USB_SERIAL_JTAG_SUPPORTED + Serial.setTxTimeoutMs(0); // never block on usb write +#endif } void print(const char* format, ...) {