mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-10 17:43:49 +00:00
nfc_idle() function returns now 0 on success and libnfc error code on failure.
This commit is contained in:
@@ -660,7 +660,7 @@ nfc_target_init (nfc_device *pnd, nfc_target *pnt, uint8_t *pbtRx, size_t * pszR
|
||||
|
||||
/**
|
||||
* @brief Turn NFC device in idle mode
|
||||
* @return Returns \c true if action was successfully performed; otherwise returns \c false.
|
||||
* @return Returns 0 on success, otherwise returns libnfc's error code.
|
||||
*
|
||||
* @param pnd \a nfc_device struct pointer that represent currently used device
|
||||
*
|
||||
@@ -668,7 +668,7 @@ nfc_target_init (nfc_device *pnd, nfc_target *pnt, uint8_t *pbtRx, size_t * pszR
|
||||
* In initiator mode, the RF field is turned off and the device is set to low power mode (if avaible);
|
||||
* In target mode, the emulation is stoped (no target available from external initiator) and the device is set to low power mode (if avaible).
|
||||
*/
|
||||
bool
|
||||
int
|
||||
nfc_idle (nfc_device *pnd)
|
||||
{
|
||||
HAL (idle, pnd);
|
||||
|
||||
Reference in New Issue
Block a user