mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 06:58:39 +03:00
Removed floating point stuff
This commit is contained in:
@ -32,7 +32,7 @@ void UI_GenerateChannelString(char *pString, const uint8_t Channel)
|
||||
|
||||
if (gInputBoxIndex == 0)
|
||||
{
|
||||
sprintf(pString, "CH-%02d", Channel + 1);
|
||||
sprintf(pString, "CH-%02u", Channel + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -54,12 +54,12 @@ void UI_GenerateChannelStringEx(char *pString, const bool bShowPrefix, const uin
|
||||
}
|
||||
|
||||
if (bShowPrefix)
|
||||
sprintf(pString, "CH-%03d", ChannelNumber + 1);
|
||||
sprintf(pString, "CH-%03u", ChannelNumber + 1);
|
||||
else
|
||||
if (ChannelNumber == 0xFF)
|
||||
strcpy(pString, "NULL");
|
||||
else
|
||||
sprintf(pString, "%03d", ChannelNumber + 1);
|
||||
sprintf(pString, "%03u", ChannelNumber + 1);
|
||||
}
|
||||
|
||||
void UI_PrintString(const char *pString, uint8_t Start, uint8_t End, uint8_t Line, uint8_t Width)
|
||||
|
Reference in New Issue
Block a user