mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
style
This commit is contained in:
parent
ab6870c573
commit
9779868753
9 changed files with 86 additions and 59 deletions
|
@ -309,22 +309,22 @@ static void lookupChipID(uint32_t iChipID, uint32_t mem_used) {
|
|||
|
||||
static int CmdDetectReader(const char *Cmd) {
|
||||
uint16_t arg = 0;
|
||||
char c = tolower(Cmd[0]);
|
||||
switch ( c ) {
|
||||
case 'l':
|
||||
arg = 1;
|
||||
char c = tolower(Cmd[0]);
|
||||
switch (c) {
|
||||
case 'l':
|
||||
arg = 1;
|
||||
break;
|
||||
case 'h':
|
||||
arg = 2;
|
||||
arg = 2;
|
||||
break;
|
||||
default: {
|
||||
PrintAndLogEx(NORMAL, "use 'detectreader'");
|
||||
PrintAndLogEx(NORMAL, " 'detectreader l' -- 125/134 kHz");
|
||||
PrintAndLogEx(NORMAL, " 'detectreader h' -- 13.56 mHz");
|
||||
return PM3_EINVARG;
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
clearCommandBuffer();
|
||||
SendCommandOLD(CMD_LISTEN_READER_FIELD, arg, 0, 0, NULL, 0);
|
||||
return PM3_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue