summaryrefslogtreecommitdiffstats
path: root/Linux_x86
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-07-14 13:56:11 -0700
committerNick Pelly <npelly@google.com>2011-07-14 13:59:07 -0700
commit193b1502af0b28062b22af42ff3dd02f3bb21053 (patch)
tree5dde54b2a566a775b47e008e1bde7d0a4fce18e1 /Linux_x86
parent709ed1de20e4d3d6ab27bee1b2ab3d2c54f43900 (diff)
downloadexternal_libnfc-nxp-193b1502af0b28062b22af42ff3dd02f3bb21053.zip
external_libnfc-nxp-193b1502af0b28062b22af42ff3dd02f3bb21053.tar.gz
external_libnfc-nxp-193b1502af0b28062b22af42ff3dd02f3bb21053.tar.bz2
Disable read() timeout.
During normal operation, there is a pending read of 1 byte. This reverts an earlier change to make FW download more stable. Will need to revisit this again, but fow now we have other FW download fixes in place that make FW download ok. So now its better to optimize normal operation. With this change NFC becomes reliable again on Prime. Change-Id: Ie5ea1c58ae7ddeb0359f344b9ceb6478b00f2158
Diffstat (limited to 'Linux_x86')
-rw-r--r--Linux_x86/phDal4Nfc_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Linux_x86/phDal4Nfc_uart.c b/Linux_x86/phDal4Nfc_uart.c
index 6c3a00f..bb891e3 100644
--- a/Linux_x86/phDal4Nfc_uart.c
+++ b/Linux_x86/phDal4Nfc_uart.c
@@ -287,7 +287,7 @@ int phDal4Nfc_uart_read(uint8_t * pBuffer, int nNbBytesToRead)
FD_SET(gComPortContext.nHandle, &rfds);
tv.tv_sec = 2;
tv.tv_usec = 0;
- ret = select(gComPortContext.nHandle + 1, &rfds, NULL, NULL, &tv);
+ ret = select(gComPortContext.nHandle + 1, &rfds, NULL, NULL, NULL);
if (ret < 0) {
DAL_DEBUG("select() errno=%d", errno);
if (errno == EINTR || errno == EAGAIN) {