mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-14 11:33:48 +00:00
Only call pn53x_init() from the drivers initialization functions.
This commit is contained in:
@@ -109,10 +109,6 @@ nfc_connect (nfc_device_desc_t * pndd)
|
|||||||
if (pnd != NULL) {
|
if (pnd != NULL) {
|
||||||
DBG ("[%s] has been claimed.", pnd->acName);
|
DBG ("[%s] has been claimed.", pnd->acName);
|
||||||
|
|
||||||
// TODO: Put this pn53x related in driver_init()
|
|
||||||
if (!pn53x_init (pnd))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
// Set default configuration options
|
// Set default configuration options
|
||||||
// Make sure we reset the CRC and parity to chip handling.
|
// Make sure we reset the CRC and parity to chip handling.
|
||||||
if (!nfc_configure (pnd, NDO_HANDLE_CRC, true))
|
if (!nfc_configure (pnd, NDO_HANDLE_CRC, true))
|
||||||
|
|||||||
Reference in New Issue
Block a user