From 52466f64c64d0abab5c3eadc9dee2da6e7b64bd6 Mon Sep 17 00:00:00 2001 From: ole00 Date: Tue, 19 Mar 2024 20:57:10 +0000 Subject: [PATCH] PC app: added git commit to version info --- src_pc/afterburner.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src_pc/afterburner.c b/src_pc/afterburner.c index 863cad4..1e0a57a 100644 --- a/src_pc/afterburner.c +++ b/src_pc/afterburner.c @@ -50,6 +50,12 @@ To compile: gcc -g3 -O0 -o afterburner afterburner.c #define VERSION "v.0.5.8" +#ifdef GCOM +#define VERSION_EXTENDED VERSION "-" GCOM +#else +#define VERSION_EXTENDED VERSION +#endif + #define MAX_LINE (16*1024) #define MAXFUSES 30000 @@ -159,7 +165,7 @@ static void printGalTypes() { } static void printHelp() { - printf("Afterburner " VERSION " a GAL programming tool for Arduino based programmer\n"); + printf("Afterburner " VERSION_EXTENDED " a GAL programming tool for Arduino based programmer\n"); printf("more info: https://github.com/ole00/afterburner\n"); printf("usage: afterburner command(s) [options]\n"); printf("commands: ierwvsbm\n");