mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-04-01 09:59:57 +08:00
replaced strncasecmp with strcmp to get rid of compile errors
This commit is contained in:
parent
aac23b2434
commit
ec81f90ec3
1 changed files with 4 additions and 4 deletions
|
@ -2841,13 +2841,13 @@ static void CmdSetMux(char *str)
|
||||||
{
|
{
|
||||||
UsbCommand c;
|
UsbCommand c;
|
||||||
c.cmd = CMD_SET_ADC_MUX;
|
c.cmd = CMD_SET_ADC_MUX;
|
||||||
if(strncasecmp(str, "lopkd", 5) == 0) {
|
if(strcmp(str, "lopkd") == 0) {
|
||||||
c.ext1 = 0;
|
c.ext1 = 0;
|
||||||
} else if(strncasecmp(str, "loraw", 5) == 0) {
|
} else if(strcmp(str, "loraw") == 0) {
|
||||||
c.ext1 = 1;
|
c.ext1 = 1;
|
||||||
} else if(strncasecmp(str, "hipkd", 5) == 0) {
|
} else if(strcmp(str, "hipkd") == 0) {
|
||||||
c.ext1 = 2;
|
c.ext1 = 2;
|
||||||
} else if(strncasecmp(str, "hiraw", 5) == 0) {
|
} else if(strcmp(str, "hiraw") == 0) {
|
||||||
c.ext1 = 3;
|
c.ext1 = 3;
|
||||||
}
|
}
|
||||||
SendCommand(&c, FALSE);
|
SendCommand(&c, FALSE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue