mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-02 22:01:50 +00:00
test: rename test_dep to test_device_modes_as_dep and improve it.
This commit is contained in:
@@ -1742,6 +1742,9 @@ pn53x_target_init (struct nfc_device *pnd, nfc_target *pnt, uint8_t *pbtRx, cons
|
||||
uint8_t btActivatedMode;
|
||||
|
||||
if((res = pn53x_TgInitAsTarget(pnd, ptm, pbtMifareParams, pbtTkt, szTkt, pbtFeliCaParams, pbtNFCID3t, pbtGBt, szGBt, pbtRx, szRxLen, &btActivatedMode, timeout)) < 0) {
|
||||
if (res == NFC_ETIMEOUT) {
|
||||
return pn53x_idle(pnd);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
szRx = (size_t) res;
|
||||
|
||||
Reference in New Issue
Block a user