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

Various updates

This commit is contained in:
OneOfEleven
2023-09-12 11:01:34 +01:00
parent e43dfb3f6b
commit 1ea5470254
13 changed files with 233 additions and 238 deletions

View File

@ -77,7 +77,7 @@ void UI_PrintString(const char *pString, uint8_t Start, uint8_t End, uint8_t Lin
const unsigned int Index = pString[i] - ' ';
const unsigned int ofs = (unsigned int)Start + (i * Width);
memcpy(gFrameBuffer[Line + 0] + ofs, &gFontBig[Index][0], 8);
memcpy(gFrameBuffer[Line + 1] + ofs, &gFontBig[Index][8], 8);
memcpy(gFrameBuffer[Line + 1] + ofs, &gFontBig[Index][8], 7);
}
}
}

View File

@ -220,7 +220,7 @@ void UI_DisplayMain(void)
strcpy(String, "BAT LOW");
break;
case VFO_STATE_TX_DISABLE:
strcpy(String, "DISABLE");
strcpy(String, "TX DISABLE");
break;
case VFO_STATE_TIMEOUT:
strcpy(String, "TIMEOUT");
@ -228,13 +228,18 @@ void UI_DisplayMain(void)
case VFO_STATE_ALARM:
strcpy(String, "ALARM");
break;
case VFO_STATE_VOL_HIGH:
sprintf(String, "VOL HIGH");
case VFO_STATE_VOLTAGE_HIGH:
sprintf(String, "VOLT HIGH");
Width = 8;
break;
}
UI_PrintString(String, 31, 111, Line, Width, true);
#if 0
UI_PrintString(String, 31, 111, Line, Width, true);
#else
(void)Width;
UI_PrintString(String, 31, 111, Line, 8, false);
#endif
}
else
{ // normal state