From 1ac56b06c5955ecf1067ac67039e1d72ed9fb3d5 Mon Sep 17 00:00:00 2001 From: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com> Date: Mon, 5 May 2025 18:25:24 +1000 Subject: [PATCH] [arduino] Always include Arduino.h for Arduino (#8693) --- esphome/core/macros.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/core/macros.h b/esphome/core/macros.h index ee53d20ad1..8b2383321b 100644 --- a/esphome/core/macros.h +++ b/esphome/core/macros.h @@ -2,3 +2,7 @@ // Helper macro to define a version code, whose value can be compared against other version codes. #define VERSION_CODE(major, minor, patch) ((major) << 16 | (minor) << 8 | (patch)) + +#ifdef USE_ARDUINO +#include +#endif