From 0a8a503d932f99e5d73f82f75cbbd4fea23553db Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 21 Mar 2022 12:33:10 +0100 Subject: [PATCH] Add missing header file for IDF 5.0 --- main/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.c b/main/main.c index eac3bba..e11b426 100644 --- a/main/main.c +++ b/main/main.c @@ -12,6 +12,10 @@ #include "freertos/task.h" #include "esp_system.h" #include "esp_spi_flash.h" +#include "esp_idf_version.h" +#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0) +#include "esp_chip_info.h" +#endif #include "RustApi.h"