1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-07 06:01:35 +03:00

Add debug support for build.opt (#8637)

Add support to have different build option comment blocks
for debug and production builds.

Updated example esp8266/HwdtStackDump to use build.opt
This commit is contained in:
M Hightower
2022-08-04 11:33:24 -07:00
committed by GitHub
parent ee7ac2f79d
commit 313b3c07ec
5 changed files with 132 additions and 4 deletions

View File

@ -180,7 +180,9 @@
* tool performing hardware reset and exiting, then the serial monitor
* re-engaging. This is not an issue that needs to be addressed here.
*/
#define DEBUG_ESP_HWDT_PRINT_GREETING
#ifndef DEBUG_ESP_HWDT_PRINT_GREETING
#define DEBUG_ESP_HWDT_PRINT_GREETING (1)
#endif
/*
@ -995,7 +997,7 @@ STATIC void IRAM_MAYBE handle_hwdt(void) {
}
#endif
#if defined(DEBUG_ESP_HWDT_PRINT_GREETING)
#if DEBUG_ESP_HWDT_PRINT_GREETING
ETS_PRINTF("\n\nHardware WDT Stack Dump - enabled\n\n");
#else
ETS_PRINTF("\n\n");