File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ uint16_t makeWord(uint8_t h, uint8_t l);
200
200
size_t getArduinoLoopTaskStackSize (void );
201
201
#define SET_LOOP_TASK_STACK_SIZE (sz ) size_t getArduinoLoopTaskStackSize () { return sz;}
202
202
203
+ bool shouldPrintChipDebugInfo (void );
204
+ #define ENABLE_CHIP_DEBUG_INFO bool shouldPrintChipDebugInfo (void ){return true ;}
205
+
203
206
// allows user to bypass esp_spiram_test()
204
207
bool esp_psram_extram_test (void );
205
208
#define BYPASS_SPIRAM_TEST (bypass ) bool testSPIRAM (void ) { if (bypass) return true ; else return esp_psram_extram_test (); }
Original file line number Diff line number Diff line change @@ -41,14 +41,26 @@ __attribute__((weak)) size_t getArduinoLoopTaskStackSize(void) {
41
41
return ARDUINO_LOOP_STACK_SIZE;
42
42
}
43
43
44
+ __attribute__ ((weak)) bool shouldPrintChipDebugInfo(void ) {
45
+ return false ;
46
+ }
47
+
44
48
void loopTask (void *pvParameters)
45
49
{
46
- #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_INFO
50
+ #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
47
51
printBeforeSetupInfo ();
52
+ #else
53
+ if (shouldPrintChipDebugInfo ()){
54
+ printBeforeSetupInfo ();
55
+ }
48
56
#endif
49
57
setup ();
50
- #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_INFO
58
+ #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
51
59
printAfterSetupInfo ();
60
+ #else
61
+ if (shouldPrintChipDebugInfo ()){
62
+ printAfterSetupInfo ();
63
+ }
52
64
#endif
53
65
for (;;) {
54
66
#if CONFIG_FREERTOS_UNICORE
You can’t perform that action at this time.
0 commit comments