mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-22 21:17:31 +08:00
style
This commit is contained in:
parent
2b25d86392
commit
f1307e703c
3 changed files with 49 additions and 49 deletions
client
|
@ -649,10 +649,10 @@ static int CmdT55xxDetect(const char *Cmd) {
|
|||
return PM3_ESOFT;
|
||||
|
||||
if (useGB == false) {
|
||||
if ( try_all_dl_modes ) {
|
||||
if (try_all_dl_modes) {
|
||||
for (uint8_t mode = 0; mode < 4; mode++) {
|
||||
|
||||
if ( AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, mode) == false ) {
|
||||
if (AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, mode) == false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -663,7 +663,7 @@ static int CmdT55xxDetect(const char *Cmd) {
|
|||
}
|
||||
return PM3_ESOFT;
|
||||
} else {
|
||||
if ( AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, downlink_mode) == false )
|
||||
if (AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password, downlink_mode) == false)
|
||||
return PM3_ENODATA;
|
||||
}
|
||||
}
|
||||
|
@ -2164,7 +2164,7 @@ static int CmdT55xxChkPwds(const char *Cmd) {
|
|||
cmdp++;
|
||||
break;
|
||||
case 'i':
|
||||
if ( param_getstr(Cmd, cmdp + 1, filename, sizeof(filename)) == 0 ) {
|
||||
if (param_getstr(Cmd, cmdp + 1, filename, sizeof(filename)) == 0) {
|
||||
PrintAndLogEx(ERR, "Error, no filename after 'f' was found");
|
||||
errors = true;
|
||||
}
|
||||
|
|
|
@ -303,12 +303,12 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
|||
&& (oddparity8(frame[j]) != ((parityBits >> (7 - (j & 0x0007))) & 0x01))) {
|
||||
|
||||
snprintf(line[j / 18] + ((j % 18) * 4), 110, "%02x! ", frame[j]);
|
||||
} else if ( protocol == ICLASS && isResponse == false) {
|
||||
} else if (protocol == ICLASS && isResponse == false) {
|
||||
uint8_t parity = 0;
|
||||
for (int i=0; i<6; i++) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
parity ^= ((frame[0] >> i) & 1);
|
||||
}
|
||||
if ( parity == ((frame[0] >> 7) & 1)) {
|
||||
if (parity == ((frame[0] >> 7) & 1)) {
|
||||
snprintf(line[j / 18] + ((j % 18) * 4), 110, "%02x ", frame[j]);
|
||||
} else {
|
||||
snprintf(line[j / 18] + ((j % 18) * 4), 110, "%02x! ", frame[j]);
|
||||
|
|
Loading…
Add table
Reference in a new issue