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
This commit is contained in:
DeltaLima 2024-12-09 15:40:59 +01:00
parent f920d6509d
commit 4fe57dff56

View file

@ -56,6 +56,15 @@
#include "CanGrow_SysFunctions.h" #include "CanGrow_SysFunctions.h"
#include "CanGrow_WebFunctions.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 * Setup