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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue