mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 23:28:32 -04:00
49a46e463f
Having the version macro in the config.h and consequently in the main vehicle header means that whenever the version changes we need to compiler the whole vehicle again. This would not be so bad if we weren't also appending the git hash in the version. In this case, whenever we commit to the repository we would need to recompile everything. Move to a separate header that is include only by its users. Then instead of compiling everything we will compile just a few files.
11 lines
245 B
C
11 lines
245 B
C
#pragma once
|
|
|
|
#define THISFIRMWARE "AntennaTracker V0.7.6"
|
|
#define FIRMWARE_VERSION 0,7,6,FIRMWARE_VERSION_TYPE_DEV
|
|
|
|
#ifndef GIT_VERSION
|
|
#define FIRMWARE_STRING THISFIRMWARE
|
|
#else
|
|
#define FIRMWARE_STRING THISFIRMWARE " (" GIT_VERSION ")"
|
|
#endif
|