Include Arduino header when using Arduino

Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
Jesse Hills 2025-05-05 19:47:21 +12:00
parent 3b8a5db97c
commit 11cc5aef62
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -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 <Arduino.h>
#endif