summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-10-30 00:35:36 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-10-30 00:35:36 +0100
commitb2e1b68046b472d545dea570f7be9fa25dabbd20 (patch)
treeb051c6a3edb6648de70666d93f36cf8545c4e468
parent2e273960c5830c421a96addff112ef9576c79b7c (diff)
downloadneard-b2e1b68046b472d545dea570f7be9fa25dabbd20.tar.gz
neard-b2e1b68046b472d545dea570f7be9fa25dabbd20.tar.bz2
neard-b2e1b68046b472d545dea570f7be9fa25dabbd20.zip
nfctype4: Do not release target after a succesful tag write
There is no reason for releasing a target after tag writing succeeded. Especially since check presence still needs the link.
-rw-r--r--plugins/nfctype4.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/nfctype4.c b/plugins/nfctype4.c
index 4c599a7..349dd78 100644
--- a/plugins/nfctype4.c
+++ b/plugins/nfctype4.c
@@ -587,7 +587,6 @@ static int data_write_cb(uint8_t *resp, int length, void *data)
if (cookie->ndef->offset >= cookie->ndef->length) {
DBG("Done writing");
- near_adapter_disconnect(cookie->adapter_idx);
if (cookie->cb)
cookie->cb(cookie->adapter_idx, cookie->target_idx, 0);