aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-12 18:13:45 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-12 18:13:45 -0700
commit6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1 (patch)
treeb3f0745f41dec7531aabc9c5a3a73dca869fc84f /firmware/microblaze/apps
parente2fcb815141b05205ea9334e2db78f9ceffa62c3 (diff)
downloaduhd-6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1.tar.gz
uhd-6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1.tar.bz2
uhd-6be2b64ce86f4bb9f36bae8758d7de2ddbabe2b1.zip
Fixed GPS UART stuff. Works OK.
Diffstat (limited to 'firmware/microblaze/apps')
-rw-r--r--firmware/microblaze/apps/txrx_uhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c
index 42a3f4b89..2065830ff 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_in->data.uart_args.data, num_bytes);
+ num_bytes = fngets(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;
@@ -326,7 +326,7 @@ void handle_udp_ctrl_packet(
if(num_bytes > 20) num_bytes = 20;
fnputstr(ctrl_data_in->data.uart_args.dev, (char *) ctrl_data_in->data.uart_args.data, num_bytes);
ctrl_data_out.id = USRP2_CTRL_ID_MAN_I_TOTALLY_WROTE_THAT_UART_DUDE;
- ctrl_data_out.data.i2c_args.bytes = num_bytes;
+ ctrl_data_out.data.uart_args.bytes = num_bytes;
break;
}