From f1c6f8313bed5e17d64dfbf34513017dacf10e72 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Mon, 20 Nov 2023 23:32:20 +0100 Subject: [PATCH 1/2] tell user not to post stack dumps, but to decode them --- cores/esp8266/core_esp8266_postmortem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_postmortem.cpp b/cores/esp8266/core_esp8266_postmortem.cpp index 9f5594d148..c4a4edc515 100644 --- a/cores/esp8266/core_esp8266_postmortem.cpp +++ b/cores/esp8266/core_esp8266_postmortem.cpp @@ -99,7 +99,9 @@ static void ets_printf_P(const char *str, ...) { } static void cut_here() { - ets_putc('\n'); + // https://tinyurl.com/8266dcdr => https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html#exception + ets_printf_P(PSTR("\nDO NOT POST THIS EXCEPTION - Decode it: https://tinyurl.com/8266dcdr\n")); + for (auto i = 0; i < 15; i++ ) { ets_putc('-'); } From 66abb2cccbba43a73598185069760cdec6c57b8e Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Wed, 22 Nov 2023 23:24:05 +0100 Subject: [PATCH 2/2] change message --- cores/esp8266/core_esp8266_postmortem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_postmortem.cpp b/cores/esp8266/core_esp8266_postmortem.cpp index c4a4edc515..7fff9d2ff7 100644 --- a/cores/esp8266/core_esp8266_postmortem.cpp +++ b/cores/esp8266/core_esp8266_postmortem.cpp @@ -100,7 +100,7 @@ static void ets_printf_P(const char *str, ...) { static void cut_here() { // https://tinyurl.com/8266dcdr => https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html#exception - ets_printf_P(PSTR("\nDO NOT POST THIS EXCEPTION - Decode it: https://tinyurl.com/8266dcdr\n")); + ets_printf_P(PSTR("\nTo make this dump useful, DECODE IT - https://tinyurl.com/8266dcdr\n")); for (auto i = 0; i < 15; i++ ) { ets_putc('-');