From 983d13efa3f1ec87d846ec06031a46d2bba1d195 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sun, 12 Sep 2021 19:55:15 +0200 Subject: [PATCH] Remove warning in crashrecorder --- tasmota/support_crash_recorder.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasmota/support_crash_recorder.ino b/tasmota/support_crash_recorder.ino index 9981a9d7f..403a6d599 100644 --- a/tasmota/support_crash_recorder.ino +++ b/tasmota/support_crash_recorder.ino @@ -160,7 +160,11 @@ void CrashDumpClear(void) // esp_err_t IRAM_ATTR esp_backtrace_print(int depth) #include "freertos/xtensa_api.h" -#include "esp_panic.h" +#if ESP_IDF_VERSION_MAJOR >= 4 + #include "esp_debug_helpers.h" +#else // IDF 3.x + #include "esp_panic.h" +#endif extern "C" { // esp-idf 3.x void __real_panicHandler(XtExcFrame *frame);