Skip to content

Commit 4979db0

Browse files
authored
no chip debug report
1 parent 0f75d07 commit 4979db0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/esp32/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,24 @@ void loopTask(void *pvParameters)
5151
// sets UART0 (default console) RX/TX pins as already configured in boot or as defined in variants/pins_arduino.h
5252
Serial0.setPins(gpioNumberToDigitalPin(SOC_RX0), gpioNumberToDigitalPin(SOC_TX0));
5353
#endif
54+
#if defined __has_include && __has_include ("chip-debug-report.h")
5455
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
5556
printBeforeSetupInfo();
5657
#else
5758
if(shouldPrintChipDebugReport()){
5859
printBeforeSetupInfo();
5960
}
61+
#endif
6062
#endif
6163
setup();
64+
#if defined __has_include && __has_include ("chip-debug-report.h")
6265
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
6366
printAfterSetupInfo();
6467
#else
6568
if(shouldPrintChipDebugReport()){
6669
printAfterSetupInfo();
6770
}
71+
#endif
6872
#endif
6973
for(;;) {
7074
#if CONFIG_FREERTOS_UNICORE

0 commit comments

Comments
 (0)