mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
drivers/pn532_uart,arygon: Make valgrind happy with UART-based drivers
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
typedef uint8_t byte_t;
|
||||
|
||||
# define DEVICE_NAME_LENGTH 256
|
||||
# define DEVICE_PORT_LENGTH 64
|
||||
|
||||
/**
|
||||
* @struct nfc_device_t
|
||||
* @brief NFC device information
|
||||
@@ -81,7 +83,7 @@ typedef struct {
|
||||
/** Driver name (e.g. "PN532_UART")*/
|
||||
char *pcDriver;
|
||||
/** Port (e.g. "/dev/ttyUSB0") */
|
||||
char *pcPort;
|
||||
char acPort[DEVICE_PORT_LENGTH];
|
||||
/** Port speed (e.g. "115200") */
|
||||
uint32_t uiSpeed;
|
||||
/** Device index for backward compatibility (used to choose one specific device in USB or PSCS devices list) */
|
||||
|
||||
Reference in New Issue
Block a user