Skip to content

Commit 8c7fcac

Browse files
committed
feat(logging): Arduino log redirection
1 parent 6c04a93 commit 8c7fcac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ int log_printfv(const char *format, va_list arg) {
11201120
}
11211121
#endif
11221122
*/
1123-
#if (ARDUINO_USB_CDC_ON_BOOT == 1 && ARDUINO_USB_MODE == 0) || CONFIG_IDF_TARGET_ESP32C3 \
1123+
#if ARDUINO_LOG_FORCE_ETS_PRINTF == 1 || (ARDUINO_USB_CDC_ON_BOOT == 1 && ARDUINO_USB_MODE == 0) || CONFIG_IDF_TARGET_ESP32C3 \
11241124
|| ((CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32P4) && ARDUINO_USB_CDC_ON_BOOT == 1)
11251125
vsnprintf(temp, len + 1, format, arg);
11261126
ets_printf("%s", temp);

0 commit comments

Comments
 (0)