Moved version definition in Makefile
The expected version can now be set in the Makefile via USR_CXXFLAGS. Additionally, the README.md has received documentation regarding the version check. Lastly, the version check can now be disabled by omitting the flags or setting one of them to a negative value.
This commit is contained in:
4
Makefile
4
Makefile
@@ -30,3 +30,7 @@ DBDS += sinqMotor/src/sinqMotor.dbd
|
||||
DBDS += src/masterMacs.dbd
|
||||
|
||||
USR_CFLAGS += -Wall -Wextra -Weffc++ -Wunused-result -Wextra -Werror
|
||||
|
||||
# These flags define the expected firmware version. See README.md, section
|
||||
# "Firmware version checking" for details.
|
||||
USR_CXXFLAGS += -DFIRMWARE_MAJOR_VERSION=2 -DFIRMWARE_MINOR_VERSION=2
|
||||
|
||||
Reference in New Issue
Block a user