From b45540a599450bbc553cb937529d62d71c52bf04 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sat, 16 Apr 2022 11:21:46 +0200 Subject: [PATCH] porting: add missing esp_timer.h include porting/npl/freertos/include/nimble/npl_freertos.h uses the esp_timer_handle_t type without including esp_timer.h. Previously this used to work because esp_timer.h was included by FreeRTOS headers. This transitive include will be removed in IDF v5.0. Add an explicit include to fix this. --- porting/npl/freertos/include/nimble/nimble_npl_os.h | 1 + 1 file changed, 1 insertion(+) diff --git a/porting/npl/freertos/include/nimble/nimble_npl_os.h b/porting/npl/freertos/include/nimble/nimble_npl_os.h index 2480c3dd8..e4c985c28 100644 --- a/porting/npl/freertos/include/nimble/nimble_npl_os.h +++ b/porting/npl/freertos/include/nimble/nimble_npl_os.h @@ -28,6 +28,7 @@ #include "freertos/semphr.h" #include "freertos/task.h" #include "freertos/timers.h" +#include "esp_timer.h" #ifdef __cplusplus extern "C" {