Fix return value of hex_to_keycode() function in keymap “coderkun_neo2”
This commit is contained in:
parent
223cffd92f
commit
b0ade6dc98
1 changed files with 5 additions and 4 deletions
|
@ -296,9 +296,8 @@ uint16_t hex_to_keycode(uint8_t hex)
|
||||||
{
|
{
|
||||||
if(hex == 0x0) {
|
if(hex == 0x0) {
|
||||||
return KC_0;
|
return KC_0;
|
||||||
} else if (hex < 0xA) {
|
}
|
||||||
return KC_1 + (hex - 0x1);
|
else if(hex >= 0xA) {
|
||||||
} else {
|
|
||||||
switch(hex) {
|
switch(hex) {
|
||||||
case 0xA:
|
case 0xA:
|
||||||
return NEO_A;
|
return NEO_A;
|
||||||
|
@ -314,4 +313,6 @@ uint16_t hex_to_keycode(uint8_t hex)
|
||||||
return NEO_F;
|
return NEO_F;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return KC_1 + (hex - 0x1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue