diff options
author | Nick Pelly <npelly@google.com> | 2011-07-14 13:56:11 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-07-14 13:59:07 -0700 |
commit | 193b1502af0b28062b22af42ff3dd02f3bb21053 (patch) | |
tree | 5dde54b2a566a775b47e008e1bde7d0a4fce18e1 | |
parent | 709ed1de20e4d3d6ab27bee1b2ab3d2c54f43900 (diff) | |
download | external_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
-rw-r--r-- | Linux_x86/phDal4Nfc_uart.c | 2 |
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) { |