From 22c50597014a2c124d0af1c5b0d9c0dea031796b Mon Sep 17 00:00:00 2001 From: GamerBene19 Date: Fri, 17 Nov 2023 17:09:13 +0100 Subject: [PATCH] Add header for temperature sensor driver (#259) Only includes the header for driver implemented in esp-idf v5+ At the time of writing following ESP variants are supported by the driver ESP32{S2,S3,C2,C3,C6,H2} --- src/include/esp-idf/bindings.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/esp-idf/bindings.h b/src/include/esp-idf/bindings.h index 28887ae74fe..a353e6a34ec 100644 --- a/src/include/esp-idf/bindings.h +++ b/src/include/esp-idf/bindings.h @@ -297,6 +297,10 @@ #include "driver/uart_select.h" #endif +#if ESP_IDF_VERSION_MAJOR > 4 && defined(SOC_TEMP_SENSOR_SUPPORTED) +#include "driver/temperature_sensor.h" +#endif + #ifdef ESP_IDF_COMP_ESPCOREDUMP_ENABLED #include "esp_core_dump.h" #endif