diff --git a/esphome/components/libretiny/hal.cpp b/esphome/components/libretiny/hal.cpp index 64b8de8f86..4e94d5242b 100644 --- a/esphome/components/libretiny/hal.cpp +++ b/esphome/components/libretiny/hal.cpp @@ -1,5 +1,6 @@ #ifdef USE_LIBRETINY +#include "core.h" #include "esphome/core/hal.h" #include "preferences.h" diff --git a/esphome/core/hal/hal_libretiny.h b/esphome/core/hal/hal_libretiny.h index 2c8b45812a..e519698ce0 100644 --- a/esphome/core/hal/hal_libretiny.h +++ b/esphome/core/hal/hal_libretiny.h @@ -95,7 +95,7 @@ __attribute__((always_inline)) inline uint32_t millis() { return static_cast