mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03: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.
17
main.c
17
main.c
@ -36,7 +36,13 @@
|
|||||||
#include "ui/lock.h"
|
#include "ui/lock.h"
|
||||||
#include "ui/welcome.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)
|
void _putchar(char c)
|
||||||
{
|
{
|
||||||
@ -60,7 +66,16 @@ void Main(void)
|
|||||||
BOARD_Init();
|
BOARD_Init();
|
||||||
|
|
||||||
UART_Init();
|
UART_Init();
|
||||||
|
|
||||||
|
#ifdef GIT_HASH
|
||||||
UART_Send(Version, sizeof(Version));
|
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
|
// Not implementing authentic device checks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user