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

Enable heap poisoning only when debug options are enabled (#1800)

This commit is contained in:
Ivan Grokhotkov 2016-03-24 01:34:25 +03:00
parent 19e97bfe15
commit 3d3c928e2e

View File

@ -131,7 +131,9 @@ extern char _heap_start;
* callback is called: `UMM_HEAP_CORRUPTION_CB()`
*/
#if defined(DEBUG_ESP_PORT) || defined(DEBUG_ESP_CORE)
#define UMM_POISON
#endif
#define UMM_POISON_SIZE_BEFORE 4
#define UMM_POISON_SIZE_AFTER 4