mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 05:13:22 -07:00
USB comms: part 2 towards @micolous PR#463 (#595)
* change variable 'offline' from global to static * change variable 'FlushAfterWrite' from global to static * remove unused global variable 'current_command' * WaitForResponseTimeoutW(CMD_UNKNOWN, ...) waits for any command * #include "printf.h" or <stdio.h> in iso15693tools.c to define sprintf() * and some minor changes/comments
This commit is contained in:
parent
e069547c27
commit
61aaee35cc
13 changed files with 61 additions and 35 deletions
|
@ -11,6 +11,12 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
//#include "iso15693tools.h"
|
||||
#ifdef ON_DEVICE
|
||||
#include "printf.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
|
||||
#define POLY 0x8408
|
||||
|
||||
|
@ -51,8 +57,6 @@ int Iso15693AddCrc(uint8_t *req, int n) {
|
|||
}
|
||||
|
||||
|
||||
int sprintf(char *str, const char *format, ...);
|
||||
|
||||
// returns a string representation of the UID
|
||||
// UID is transmitted and stored LSB first, displayed MSB first
|
||||
// target char* buffer, where to put the UID, if NULL a static buffer is returned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue