mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix the channel number display
This commit is contained in:
1 parent
21c215e9fd
commit
bdaf320c08
1 file changed
+4
-3
+4
-3
@@ -46,13 +46,14 @@ const char* INPUTBOX_GetAscii()
|
||||
const char* INPUTBOX_GetAsciiAlignRight() {
|
||||
int targetPos = 7;
|
||||
|
||||
if (gInputBoxIndex == 1)
|
||||
memset(inputBoxAscii, '-', sizeof(inputBoxAscii));
|
||||
|
||||
for (int i = 7; i >= 0; i--) {
|
||||
if (gInputBox[i] != 10) {
|
||||
inputBoxAscii[targetPos--] = '0' + gInputBox[i];
|
||||
}
|
||||
}
|
||||
|
||||
while(targetPos >= 0)
|
||||
inputBoxAscii[targetPos--] = '-';
|
||||
|
||||
return inputBoxAscii;
|
||||
}
|
||||
Reference in new issue
Block a user