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:
@ -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");
|
||||
|
Reference in New Issue
Block a user