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:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
13
ui/main.c
13
ui/main.c
@ -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
|
||||
|
Reference in New Issue
Block a user