Merge pull request #13112 from s-hadinger/crashrecorder_remove_warning

Remove warning in crashrecorder
This commit is contained in:
s-hadinger 2021-09-12 21:09:55 +02:00 committed by GitHub
commit eca751fbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,11 @@ void CrashDumpClear(void)
// esp_err_t IRAM_ATTR esp_backtrace_print(int depth) // esp_err_t IRAM_ATTR esp_backtrace_print(int depth)
#include "freertos/xtensa_api.h" #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" { extern "C" {
// esp-idf 3.x // esp-idf 3.x
void __real_panicHandler(XtExcFrame *frame); void __real_panicHandler(XtExcFrame *frame);