diff --git a/applications/git.c b/applications/git.c index ee5b807..9a52ce6 100644 --- a/applications/git.c +++ b/applications/git.c @@ -191,13 +191,15 @@ int write_targeted_file(int version_number, char *version_hash, char sta) } fprintf(fp, "\""); fprintf(fp, "\n"); - fprintf(fp, "#define FIRMWARE_VER_MULTI \"%c\"\n", sta); + if (sta == '\0') { + fprintf(fp, "#define FIRMWARE_VER_MULTI \"\"\n"); fprintf(fp, "#define FIRMWARE_BUILD_INFO \"r\"FIRMWARE_VER_REV_STR\"-\"FIRMWARE_VER_HASH_STR\" \"FIRMWARE_TARGET_STR\" \"\" built on \"__DATE__\" \"__TIME__\n"); } else { + fprintf(fp, "#define FIRMWARE_VER_MULTI \"%c\"\n", sta); fprintf(fp, "#define FIRMWARE_BUILD_INFO \"r\"FIRMWARE_VER_REV_STR\"-\"FIRMWARE_VER_HASH_STR\"-\"FIRMWARE_VER_MULTI\" \"FIRMWARE_TARGET_STR\" \"\" built on \"__DATE__\" \"__TIME__\n"); } fprintf(fp, "#define FIRMWARE_SUBMODULE_REV \\\n"); diff --git a/applications/gitrev_RTT.exe b/applications/gitrev_RTT.exe index c94ea7a..afeb844 100644 Binary files a/applications/gitrev_RTT.exe and b/applications/gitrev_RTT.exe differ diff --git a/applications/revision.h b/applications/revision.h index 57ff404..a5c0d73 100644 --- a/applications/revision.h +++ b/applications/revision.h @@ -15,8 +15,8 @@ #else #define FIRMWARE_TARGET_STR "release" #endif -#define FIRMWARE_VER_REV 3 -#define FIRMWARE_VER_REV_STR "3" +#define FIRMWARE_VER_REV 4 +#define FIRMWARE_VER_REV_STR "4" #define FIRMWARE_VER_HASH_STR "698c62f0" #define FIRMWARE_VER_MULTI "M" #define FIRMWARE_BUILD_INFO "r"FIRMWARE_VER_REV_STR"-"FIRMWARE_VER_HASH_STR"-"FIRMWARE_VER_MULTI" "FIRMWARE_TARGET_STR" "" built on "__DATE__" "__TIME__