mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
style
This commit is contained in:
parent
5a7e6643c7
commit
c002ae9f77
5 changed files with 10 additions and 10 deletions
|
@ -1355,8 +1355,6 @@ bool SimulateIso14443aInit(uint8_t tagType, uint16_t flags, uint8_t *data, uint8
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AddCrc14A(rRATS, rRATS_len - 2);
|
AddCrc14A(rRATS, rRATS_len - 2);
|
||||||
|
|
||||||
AddCrc14A(rPPS, sizeof(rPPS) - 2);
|
AddCrc14A(rPPS, sizeof(rPPS) - 2);
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
#include "dbprint.h"
|
#include "dbprint.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "commonutil.h"
|
#include "commonutil.h"
|
||||||
|
|
||||||
#include "crc16.h"
|
#include "crc16.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "printf.h"
|
#include "printf.h"
|
||||||
|
|
|
@ -696,9 +696,10 @@ int DesfireAPDU(uint8_t *cmd, size_t cmd_len, uint8_t *dataout) {
|
||||||
ReaderTransmit(wCmd, wrappedLen, NULL);
|
ReaderTransmit(wCmd, wrappedLen, NULL);
|
||||||
|
|
||||||
len = ReaderReceive(resp, sizeof(resp), par);
|
len = ReaderReceive(resp, sizeof(resp), par);
|
||||||
if (!len) {
|
if (len == 0) {
|
||||||
if (g_dbglevel >= DBG_EXTENDED) Dbprintf("fukked");
|
if (g_dbglevel >= DBG_EXTENDED) Dbprintf("fukked");
|
||||||
return false; //DATA LINK ERROR
|
return false; //DATA LINK ERROR
|
||||||
|
|
||||||
}
|
}
|
||||||
// if we received an I- or R(ACK)-Block with a block number equal to the
|
// if we received an I- or R(ACK)-Block with a block number equal to the
|
||||||
// current block number, toggle the current block number
|
// current block number, toggle the current block number
|
||||||
|
|
|
@ -16,10 +16,8 @@
|
||||||
// ISO15693 other commons
|
// ISO15693 other commons
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
#include "iso15693tools.h"
|
#include "iso15693tools.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
#define ISO15693_SPRINTUID_BUFLEN (3 * 8 + 1)
|
#define ISO15693_SPRINTUID_BUFLEN (3 * 8 + 1)
|
||||||
|
|
||||||
// returns a string representation of the UID
|
// returns a string representation of the UID
|
||||||
|
@ -28,9 +26,10 @@
|
||||||
// uid[] the UID in transmission order
|
// uid[] the UID in transmission order
|
||||||
// return: ptr to string
|
// return: ptr to string
|
||||||
char *iso15693_sprintUID(char *dest, uint8_t *uid) {
|
char *iso15693_sprintUID(char *dest, uint8_t *uid) {
|
||||||
static char tempbuf[ISO15693_SPRINTUID_BUFLEN] = {0};
|
static char tmp[ISO15693_SPRINTUID_BUFLEN] = {0};
|
||||||
if (dest == NULL)
|
if (dest == NULL) {
|
||||||
dest = tempbuf;
|
dest = tmp;
|
||||||
|
}
|
||||||
|
|
||||||
if (uid) {
|
if (uid) {
|
||||||
#ifdef HAVE_SNPRINTF
|
#ifdef HAVE_SNPRINTF
|
||||||
|
|
|
@ -864,7 +864,10 @@ typedef struct {
|
||||||
// Got wrong length error pm3: when received wrong length of data
|
// Got wrong length error pm3: when received wrong length of data
|
||||||
#define PM3_ELENGTH -27
|
#define PM3_ELENGTH -27
|
||||||
|
|
||||||
// No data pm3: no data available, no host frame available (not really an error)
|
// No key available client/pm3: no cryptographic key available.
|
||||||
|
#define PM3_ENOKEY -28
|
||||||
|
|
||||||
|
// No data client/pm3: no data available, no host frame available (not really an error)
|
||||||
#define PM3_ENODATA -98
|
#define PM3_ENODATA -98
|
||||||
// Quit program client: reserved, order to quit the program
|
// Quit program client: reserved, order to quit the program
|
||||||
#define PM3_EFATAL -99
|
#define PM3_EFATAL -99
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue