mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
AddCrc14A(rRATS, rRATS_len - 2);
|
||||
|
||||
AddCrc14A(rPPS, sizeof(rPPS) - 2);
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "dbprint.h"
|
||||
#include "util.h"
|
||||
#include "commonutil.h"
|
||||
|
||||
#include "crc16.h"
|
||||
#include "string.h"
|
||||
#include "printf.h"
|
||||
|
|
|
@ -696,9 +696,10 @@ int DesfireAPDU(uint8_t *cmd, size_t cmd_len, uint8_t *dataout) {
|
|||
ReaderTransmit(wCmd, wrappedLen, NULL);
|
||||
|
||||
len = ReaderReceive(resp, sizeof(resp), par);
|
||||
if (!len) {
|
||||
if (len == 0) {
|
||||
if (g_dbglevel >= DBG_EXTENDED) Dbprintf("fukked");
|
||||
return false; //DATA LINK ERROR
|
||||
|
||||
}
|
||||
// if we received an I- or R(ACK)-Block with a block number equal to the
|
||||
// current block number, toggle the current block number
|
||||
|
|
|
@ -16,10 +16,8 @@
|
|||
// ISO15693 other commons
|
||||
//-----------------------------------------------------------------------------
|
||||
#include "iso15693tools.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#define ISO15693_SPRINTUID_BUFLEN (3 * 8 + 1)
|
||||
|
||||
// returns a string representation of the UID
|
||||
|
@ -28,9 +26,10 @@
|
|||
// uid[] the UID in transmission order
|
||||
// return: ptr to string
|
||||
char *iso15693_sprintUID(char *dest, uint8_t *uid) {
|
||||
static char tempbuf[ISO15693_SPRINTUID_BUFLEN] = {0};
|
||||
if (dest == NULL)
|
||||
dest = tempbuf;
|
||||
static char tmp[ISO15693_SPRINTUID_BUFLEN] = {0};
|
||||
if (dest == NULL) {
|
||||
dest = tmp;
|
||||
}
|
||||
|
||||
if (uid) {
|
||||
#ifdef HAVE_SNPRINTF
|
||||
|
|
|
@ -864,7 +864,10 @@ typedef struct {
|
|||
// Got wrong length error pm3: when received wrong length of data
|
||||
#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
|
||||
// Quit program client: reserved, order to quit the program
|
||||
#define PM3_EFATAL -99
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue