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

Typo in Makefile

This commit is contained in:
OneOfEleven
2023-10-16 20:58:19 +01:00
parent 00465cacf1
commit 1c736497f4
8 changed files with 56 additions and 46 deletions

View File

@ -59,10 +59,21 @@ void draw_bar(uint8_t *line, const int len, const int max_width)
line[i] = (i <= len) ? 0x7f : 0x41;
#else
// segmented bar
for (i = 0; i < max_width; i += 5)
for (int k = i - 5; k < i && k < len; k++)
for (i = 0; i < max_width; i += 4)
{
for (int k = i - 4; k < i && k < len; k++)
{
if (k >= 0)
line[k] = (k < (i - 2)) ? 0x7f : 0x00;
// line[k] = (k < (i - 1)) ? 0x7f : 0x00;
if (k < (i - 1))
line[k] = 0x3e;
}
}
// top/bottom lines
for (i = 0; i < len; i += 2)
line[i] |= 0x41;
for (i &= ~3u ; i < max_width; i += 4)
line[i] = 0x41;
#endif
}