From 4fe57dff56dd0e0b1c2eda21b77b73d2b0310503 Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Mon, 9 Dec 2024 15:40:59 +0100 Subject: [PATCH] firmware - define CANGROW_VER and CANGROW_BUILD defaults, when not defined by compiler flag With the recent change of defining CANGROW_VER and CANGROW_BUILD as compiler flag and not within CanGrow_Version.h building from Arduino IDE broke. So I define defaults to them, when not defined by the compiler --- Arduino/CanGrow/CanGrow.ino | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index c45c301..c9f55b5 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -56,6 +56,15 @@ #include "CanGrow_SysFunctions.h" #include "CanGrow_WebFunctions.h" +// set CANGROW_VER and CANGROW_BUILD if not already done as Compiler Flag +#ifndef CANGROW_VER + #define CANGROW_VER "v0.1.0-dev" +#endif +#ifndef CANGROW_BUILD + #define CANGROW_BUILD "1a2b3c4f" +#endif + + /* * Setup