Changing decToInt to numToInt (adds support for Hex number interpreter)
- CLI now works with hex or decimal numbers - Hex requires 0x (technically just x would work too)
This commit is contained in:
parent
662d1f557f
commit
d6d792fdf9
10 changed files with 54 additions and 31 deletions
|
@ -214,7 +214,7 @@ void cliFunc_setKeys( char* args )
|
|||
break;
|
||||
|
||||
// Add the USB code to be sent
|
||||
USBKeys_ArrayCLI[USBKeys_SentCLI] = decToInt( arg1Ptr );
|
||||
USBKeys_ArrayCLI[USBKeys_SentCLI] = numToInt( arg1Ptr );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -227,6 +227,6 @@ void cliFunc_setMod( char* args )
|
|||
char* arg2Ptr;
|
||||
CLI_argumentIsolation( args, &arg1Ptr, &arg2Ptr );
|
||||
|
||||
USBKeys_ModifiersCLI = decToInt( arg1Ptr );
|
||||
USBKeys_ModifiersCLI = numToInt( arg1Ptr );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue