Display version defined in config.h

pull/46/head
Pawel Jalocha 2022-03-22 10:37:18 +00:00
rodzic bb857a51b1
commit d674392c0c
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -36,6 +36,15 @@
// #include "timesync.h"
#include "format.h"
#include "config.h"
#define QUOTE(name) #name
#define STR(macro) QUOTE(macro)
#ifndef VERSION
#define VERSION 0.0.0
#endif
static char Line[128];
// ========================================================================================================================
@ -756,7 +765,7 @@ void OLED_DrawID(u8g2_t *OLED, GPS_Position *GPS)
#endif
}
u8g2_SetFont(OLED, u8g2_font_5x8_tr);
u8g2_DrawStr(OLED, 96, 62, "v0.1.2");
u8g2_DrawStr(OLED, 96, 62, "v" STR(VERSION));
}
void OLED_DrawAltitudeAndSpeed(u8g2_t *OLED, GPS_Position *GPS)