From 575ba88996ca2e79ec32b47de7c8d10c0cd9f95c Mon Sep 17 00:00:00 2001 From: colincci Date: Wed, 8 Mar 2023 17:09:55 -0600 Subject: [PATCH] Updated for esp-idf v5.1 --- CMakeLists.txt | 1 + i2c-lcd1602.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41d6fff..40a2846 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ set(COMPONENT_ADD_INCLUDEDIRS include) set(COMPONENT_SRCDIRS ".") +set(COMPONENT_REQUIRES "driver") set(COMPONENT_PRIV_REQUIRES "esp32-smbus") register_component() diff --git a/i2c-lcd1602.c b/i2c-lcd1602.c index 122f8c8..fb87319 100644 --- a/i2c-lcd1602.c +++ b/i2c-lcd1602.c @@ -93,6 +93,7 @@ #include "freertos/task.h" #include "esp_system.h" #include "esp_log.h" +#include "rom/ets_sys.h" #include "i2c-lcd1602.h"