Make style.
This commit is contained in:
@@ -795,7 +795,7 @@ static int CmdHFFelicaSniff(const char *Cmd) {
|
||||
paramCount++;
|
||||
if (param_getlength(Cmd, paramCount) < 5) {
|
||||
samples2skip = param_get32ex(Cmd, paramCount++, 0, 10);
|
||||
}else{
|
||||
} else {
|
||||
PrintAndLogEx(ERR, "Invalid samples number!");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
@@ -805,7 +805,7 @@ static int CmdHFFelicaSniff(const char *Cmd) {
|
||||
paramCount++;
|
||||
if (param_getlength(Cmd, paramCount) < 5) {
|
||||
triggers2skip = param_get32ex(Cmd, paramCount++, 0, 10);
|
||||
}else{
|
||||
} else {
|
||||
PrintAndLogEx(ERR, "Invalid triggers number!");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
@@ -818,11 +818,11 @@ static int CmdHFFelicaSniff(const char *Cmd) {
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if(samples2skip <= 0){
|
||||
if (samples2skip <= 0) {
|
||||
samples2skip = 10;
|
||||
PrintAndLogEx(INFO, "Set default samples2skip: %i", samples2skip);
|
||||
}
|
||||
if(triggers2skip <= 0){
|
||||
if (triggers2skip <= 0) {
|
||||
triggers2skip = 5000;
|
||||
PrintAndLogEx(INFO, "Set default triggers2skip: %i", triggers2skip);
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ static int CmdFdxDemod(const char *Cmd) {
|
||||
|
||||
uint8_t c[] = {0, 0};
|
||||
compute_crc(CRC_11784, raw, sizeof(raw), &c[0], &c[1]);
|
||||
PrintAndLogEx(SUCCESS, "CRC-16 0x%04X [ %s] ", crc, (crc == (c[1] << 8 | c[0]) ) ? _GREEN_("OK") : _RED_("Fail"));
|
||||
PrintAndLogEx(SUCCESS, "CRC-16 0x%04X [ %s] ", crc, (crc == (c[1] << 8 | c[0])) ? _GREEN_("OK") : _RED_("Fail"));
|
||||
|
||||
if (g_debugMode) {
|
||||
PrintAndLogEx(DEBUG, "Start marker %d; Size %zu", preambleIndex, size);
|
||||
@@ -313,7 +313,7 @@ static int CmdFdxSim(const char *Cmd) {
|
||||
|
||||
countryid = param_get32ex(Cmd, 0, 0, 10);
|
||||
animalid = param_get64ex(Cmd, 1, 0, 10);
|
||||
extended = param_get32ex(Cmd, 2, 0 , 10);
|
||||
extended = param_get32ex(Cmd, 2, 0, 10);
|
||||
|
||||
verify_values(&animalid, &countryid);
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
||||
case ISO_14443B:
|
||||
case TOPAZ:
|
||||
case FELICA:
|
||||
crcStatus = !felica_CRC_check(frame+2, data_len-4);
|
||||
crcStatus = !felica_CRC_check(frame + 2, data_len - 4);
|
||||
break;
|
||||
case PROTO_MIFARE:
|
||||
crcStatus = mifare_CRC_check(isResponse, frame, data_len);
|
||||
@@ -350,7 +350,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
||||
if (protocol == PROTO_MIFARE)
|
||||
annotateMifare(explanation, sizeof(explanation), frame, data_len, parityBytes, parity_len, isResponse);
|
||||
|
||||
if(protocol == FELICA)
|
||||
if (protocol == FELICA)
|
||||
annotateFelica(explanation, sizeof(explanation), frame, data_len);
|
||||
|
||||
if (!isResponse) {
|
||||
|
||||
Reference in New Issue
Block a user