NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
version.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Ninjaflight is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Ninjaflight is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #define FC_VERSION_MAJOR 1 // increment when a major release is made (big new feature, etc)
19 #define FC_VERSION_MINOR 13 // increment when a minor release is made (small new feature, change etc)
20 #define FC_VERSION_PATCH_LEVEL 0 // increment when a bug is fixed
21 
22 #define STR_HELPER(x) #x
23 #define STR(x) STR_HELPER(x)
24 #define FC_VERSION_STRING STR(FC_VERSION_MAJOR) "." STR(FC_VERSION_MINOR) "." STR(FC_VERSION_PATCH_LEVEL)
25 
26 #define MW_VERSION 231
27 
28 extern const char* const targetName;
29 
30 #define GIT_SHORT_REVISION_LENGTH 7 // lower case hexadecimal digits.
31 extern const char* const shortGitRevision;
32 
33 #define BUILD_DATE_LENGTH 11
34 extern const char* const buildDate; // "MMM DD YYYY" MMM = Jan/Feb/...
35 
36 #define BUILD_TIME_LENGTH 8
37 extern const char* const buildTime; // "HH:MM:SS"
const char *const shortGitRevision
Definition: version.c:21
const char *const buildDate
Definition: version.c:22
const char *const targetName
Definition: version.c:20
const char *const buildTime
Definition: version.c:23