nfc_initiator_target_is_present(): Fix error type in case no target is selected yet
This commit is contained in:
parent
71eda315c7
commit
81e1dd715d
1 changed files with 1 additions and 1 deletions
|
@ -1893,7 +1893,7 @@ pn53x_initiator_target_is_present(struct nfc_device *pnd, const nfc_target *pnt)
|
|||
// only if pnt is provided but it's not intuitive that
|
||||
// nfc_initiator_select_passive_target(pnt=NULL) + target_is_present(pnt=NULL) fails
|
||||
// Maybe we should have an internal copy of nt, no matter if a pnt was provided
|
||||
return pnd->last_error = NFC_ETGRELEASED;
|
||||
return pnd->last_error = NFC_EINVARG;
|
||||
}
|
||||
|
||||
// Check if the argument target nt is equals to current saved target
|
||||
|
|
Loading…
Add table
Reference in a new issue