summaryrefslogtreecommitdiffstats
path: root/servers/fpga_server_lin/src/fpga_conn.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-29 19:07:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-29 19:07:27 -0500
commit67f0b146ecc82da4511bfe72bdbe4f850c263d8c (patch)
treef41dd17e138fbf3361cfe03479cedb862fcee5ce /servers/fpga_server_lin/src/fpga_conn.cpp
parent1f8f9ca9434d9e2c0d7e7e061b7177009fd504df (diff)
downloadulab-67f0b146ecc82da4511bfe72bdbe4f850c263d8c.tar.gz
ulab-67f0b146ecc82da4511bfe72bdbe4f850c263d8c.zip
Add helper functions to krb sockets
Diffstat (limited to 'servers/fpga_server_lin/src/fpga_conn.cpp')
-rw-r--r--servers/fpga_server_lin/src/fpga_conn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/fpga_server_lin/src/fpga_conn.cpp b/servers/fpga_server_lin/src/fpga_conn.cpp
index b1b0451..f0ab39d 100644
--- a/servers/fpga_server_lin/src/fpga_conn.cpp
+++ b/servers/fpga_server_lin/src/fpga_conn.cpp
@@ -166,7 +166,7 @@ void FPGASocket::commandLoop() {
writeBlock(buffer, cc);
printf("[DEBUG] Got %d bytes from the serial port\n\r", cc); fflush(stdout);
}
- if (canReadLine()) {
+ if (canReadData()) {
cc = readBlock(buffer, 10000);
if (cc > 0) {
if (write(m_fd_tty, buffer, cc) < 0) {