summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-13 12:09:28 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-13 12:09:28 -0700
commit6bde8e29eb28b746109531553d38fec91a89dc73 (patch)
tree6139aa459f519d6ffebdee858c8c8162be1526be /firmware/microblaze/apps
parentf09d9820ed40371f552d3a910bc2d8170d290653 (diff)
downloaduhd-6bde8e29eb28b746109531553d38fec91a89dc73.tar.gz
uhd-6bde8e29eb28b746109531553d38fec91a89dc73.tar.bz2
uhd-6bde8e29eb28b746109531553d38fec91a89dc73.zip
Added timeout functionality for UART gets() calls. use fngets_timeout(). timeout defined in hal_uart.h.
Diffstat (limited to 'firmware/microblaze/apps')
-rw-r--r--firmware/microblaze/apps/txrx_uhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c
index 9fe17e262..9cf4c163f 100644
--- a/firmware/microblaze/apps/txrx_uhd.c
+++ b/firmware/microblaze/apps/txrx_uhd.c
@@ -315,7 +315,7 @@ void handle_udp_ctrl_packet(
//executes a readline()-style read, up to num_bytes long, up to and including newline
int num_bytes = ctrl_data_in->data.uart_args.bytes;
if(num_bytes > 20) num_bytes = 20;
- num_bytes = fngets(ctrl_data_in->data.uart_args.dev, (char *) ctrl_data_out.data.uart_args.data, num_bytes);
+ num_bytes = fngets_timeout(ctrl_data_in->data.uart_args.dev, (char *) ctrl_data_out.data.uart_args.data, num_bytes);
ctrl_data_out.id = USRP2_CTRL_ID_I_HELLA_READ_THAT_UART_DUDE;
ctrl_data_out.data.uart_args.bytes = num_bytes;
break;