mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix SCAN_SAVE_CHANNEL and UI_GenerateChannelStringEx
This commit is contained in:
1 parent
086858945b
commit
85f1bfdb7f
5 files changed
+22
-14
No files matched your search
+2
-2
@@ -44,11 +44,11 @@ void UI_GenerateChannelString(char *pString, const uint16_t Channel)
|
||||
void UI_GenerateChannelStringEx(char *pString, const bool bShowPrefix, const uint16_t ChannelNumber)
|
||||
{
|
||||
if (gInputBoxIndex > 0) {
|
||||
for (unsigned int i = 0; i < 3; i++) {
|
||||
for (unsigned int i = 0; i < 4; i++) {
|
||||
pString[i] = (gInputBox[i] == 10) ? '-' : gInputBox[i] + '0';
|
||||
}
|
||||
|
||||
pString[3] = 0;
|
||||
pString[4] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user