diff --git a/Desktop_Interface/mainwindow.cpp b/Desktop_Interface/mainwindow.cpp index 4c2f5a36..9137375f 100644 --- a/Desktop_Interface/mainwindow.cpp +++ b/Desktop_Interface/mainwindow.cpp @@ -4,8 +4,11 @@ #include #include "espospinbox.h" +#define DO_QUOTE(X) #X +#define QUOTE(X) DO_QUOTE(X) + #ifndef GIT_HASH_SHORT -#define GIT_HASH_SHORT "0000000" +#define GIT_HASH_SHORT 0000000 #endif namespace @@ -15,7 +18,7 @@ namespace constexpr char kPinoutUrl[] = "https://github.com/EspoTek/Labrador/wiki/Pinout"; constexpr char kAboutString[] = "

EspoTek Labrador

" "Continuous Release
"\ - "Git hash: " GIT_HASH_SHORT "
"\ + "Git hash: " QUOTE(GIT_HASH_SHORT) "
"\ "Website: https://espotek.com
"\ "Contact email: admin@espotek.com"; constexpr char kOrganisationName[] = "EspoTek";