Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be8de0a

Browse files
committedMar 21, 2025··
feat(log) Support redirecting Arduino logs
1 parent 6c04a93 commit be8de0a

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)
Please sign in to comment.