Browse Source
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.master
7 changed files with 22 additions and 23 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
#pragma once |
||||
|
||||
#define THISFIRMWARE "ArduPlane V3.6.0beta1" |
||||
#define FIRMWARE_VERSION 3,6,0,FIRMWARE_VERSION_TYPE_BETA |
||||
|
||||
#ifndef GIT_VERSION |
||||
#define FIRMWARE_STRING THISFIRMWARE |
||||
#else |
||||
#define FIRMWARE_STRING THISFIRMWARE " (" GIT_VERSION ")" |
||||
#endif |
Loading…
Reference in new issue