summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-05-23 14:59:56 -0700
committerNick Pelly <npelly@google.com>2011-05-23 16:02:35 -0700
commit74decc93d868ec1a8f3975a4ce3d1548c6ec6d8f (patch)
tree64909989650ef778b0babcfca4f2f58f293f07b2
parentc1f33130d9d2100e6232f8f3c782949c75205be6 (diff)
downloadexternal_libnfc-nxp-74decc93d868ec1a8f3975a4ce3d1548c6ec6d8f.zip
external_libnfc-nxp-74decc93d868ec1a8f3975a4ce3d1548c6ec6d8f.tar.gz
external_libnfc-nxp-74decc93d868ec1a8f3975a4ce3d1548c6ec6d8f.tar.bz2
Do not wait 3ms before each write.
NXP have confirmed that 3ms delay is only needed for writes destined for SWP. Change-Id: I90a5229dbb738e1f00d37a052c7ac55e0e9d215c
-rw-r--r--Linux_x86/phDal4Nfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Linux_x86/phDal4Nfc.c b/Linux_x86/phDal4Nfc.c
index bda22c5..3a3b181 100644
--- a/Linux_x86/phDal4Nfc.c
+++ b/Linux_x86/phDal4Nfc.c
@@ -855,7 +855,7 @@ void phDal4Nfc_DeferredCb (void *params)
/* DAL_DEBUG("dalMsg->transactInfo.length : %d\n", dalMsg->transactInfo.length); */
/* Make a Physical WRITE */
- usleep(3000); /* Wait 3ms before issuing a Write */
+ /* NOTE: need to usleep(3000) here if the write is for SWP */
gReadWriteContext.nNbOfBytesWritten = gLinkFunc.write(gReadWriteContext.pWriteBuffer, gReadWriteContext.nNbOfBytesToWrite);
if (gReadWriteContext.nNbOfBytesWritten != gReadWriteContext.nNbOfBytesToWrite)
{