mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
MDC RX
This commit is contained in:
parent
58aa8f0c44
commit
7992e7aea3
1 changed files with 5 additions and 1 deletions
|
@ -1664,8 +1664,12 @@ if( gIsInSubMenu && edit_index >= 0){
|
||||||
if (bKeyPressed && edit_index < 4 ) {
|
if (bKeyPressed && edit_index < 4 ) {
|
||||||
char c = edit[edit_index] + Direction;
|
char c = edit[edit_index] + Direction;
|
||||||
if(c<'0')c='F';
|
if(c<'0')c='F';
|
||||||
else if(c>'9'&&c<'A')c='A';
|
|
||||||
else if(c>'F')c='0';
|
else if(c>'F')c='0';
|
||||||
|
else if(c>'9'&&c<'A'){
|
||||||
|
if(Direction==1)c='A';
|
||||||
|
else c='9';
|
||||||
|
}
|
||||||
|
|
||||||
edit[edit_index]=c;
|
edit[edit_index]=c;
|
||||||
gRequestDisplayScreen = DISPLAY_MENU;
|
gRequestDisplayScreen = DISPLAY_MENU;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue