0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

Added 'VER' menu item to show the firmware version

This commit is contained in:
OneOfEleven
2023-10-12 10:45:35 +01:00
parent 640011c78b
commit 1ac09b09f0
10 changed files with 42 additions and 23 deletions

View File

@ -96,7 +96,7 @@ void UI_PrintStringSmall(const char *pString, uint8_t Start, uint8_t End, uint8_
size_t i;
if (End > Start)
Start += (((End - Start) - (Length * 8)) + 1) / 2;
Start += (((End - Start) - (Length * 7)) + 1) / 2;
const unsigned int char_width = ARRAY_SIZE(g_font_small[0]);
const unsigned int char_spacing = char_width + 1;
@ -119,7 +119,7 @@ void UI_PrintStringSmall(const char *pString, uint8_t Start, uint8_t End, uint8_
size_t i;
if (End > Start)
Start += (((End - Start) - (Length * 8)) + 1) / 2;
Start += (((End - Start) - (Length * 7)) + 1) / 2;
const unsigned int char_width = ARRAY_SIZE(g_font_small_bold[0]);
const unsigned int char_spacing = char_width + 1;