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"