File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -878,7 +878,7 @@ int log_printfv(const char *format, va_list arg) {
878
878
}
879
879
#endif
880
880
*/
881
- #if CONFIG_IDF_TARGET_ESP32C3
881
+ #if CONFIG_IDF_TARGET_ESP32C3 || (( CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6 ) && ARDUINO_USB_CDC_ON_BOOT )
882
882
vsnprintf (temp , len + 1 , format , arg );
883
883
ets_printf ("%s" , temp );
884
884
#else
Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ void loopTask(void *pvParameters) {
48
48
// sets UART0 (default console) RX/TX pins as already configured in boot or as defined in variants/pins_arduino.h
49
49
Serial0.setPins (gpioNumberToDigitalPin (SOC_RX0), gpioNumberToDigitalPin (SOC_TX0));
50
50
#endif
51
- #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
51
+ #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG && (!CONFIG_IDF_TARGET_ESP32C3 || !ARDUINO_USB_CDC_ON_BOOT)
52
52
printBeforeSetupInfo ();
53
53
#else
54
54
if (shouldPrintChipDebugReport ()) {
55
55
printBeforeSetupInfo ();
56
56
}
57
57
#endif
58
58
setup ();
59
- #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
59
+ #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG && (!CONFIG_IDF_TARGET_ESP32C3 || !ARDUINO_USB_CDC_ON_BOOT)
60
60
printAfterSetupInfo ();
61
61
#else
62
62
if (shouldPrintChipDebugReport ()) {
You can’t perform that action at this time.
0 commit comments