mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-21 17:19:57 +00:00
version fixes
This commit is contained in:
parent
6670b47340
commit
2dd6791f7a
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
19
main.c
19
main.c
@ -36,7 +36,13 @@
|
||||
#include "ui/lock.h"
|
||||
#include "ui/welcome.h"
|
||||
|
||||
static const char Version[] = "UV-K5 Firmware, v0.01 Open Edition\r\n";
|
||||
#ifdef GIT_HASH
|
||||
static const char Version[] = "UV-K5 Firmware, Open Edition, OEFW-"GIT_HASH"\r\n";
|
||||
#else
|
||||
#include "version.h"
|
||||
static const char Version1[] = "UV-K5 Firmware, Open Edition, ";
|
||||
static const char Version2[] = "\r\n";
|
||||
#endif
|
||||
|
||||
void _putchar(char c)
|
||||
{
|
||||
@ -60,7 +66,16 @@ void Main(void)
|
||||
BOARD_Init();
|
||||
|
||||
UART_Init();
|
||||
UART_Send(Version, sizeof(Version));
|
||||
|
||||
#ifdef GIT_HASH
|
||||
UART_Send(Version, sizeof(Version));
|
||||
#else
|
||||
{
|
||||
UART_Send(Version1, sizeof(Version1));
|
||||
UART_Send(Version, strlen(Version));
|
||||
UART_Send(Version2, sizeof(Version2));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Not implementing authentic device checks
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user