aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-05-19 17:41:11 +0000
committerPhilip Balister <philip@opensdr.com>2010-05-19 17:41:11 +0000
commitd6fc36cb7aa39cbe3f6dde1b6bc4606a2e686279 (patch)
tree02f8e283e28ba80e746066d93ed787306e46f97b /host/apps
parent88b2a958f0a3a593230ca6b17e7c4aac3fba35e7 (diff)
downloaduhd-d6fc36cb7aa39cbe3f6dde1b6bc4606a2e686279.tar.gz
uhd-d6fc36cb7aa39cbe3f6dde1b6bc4606a2e686279.tar.bz2
uhd-d6fc36cb7aa39cbe3f6dde1b6bc4606a2e686279.zip
Fix initialization bug.
Diffstat (limited to 'host/apps')
-rw-r--r--host/apps/omap_debug/usrp-e-timed.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-timed.c b/host/apps/omap_debug/usrp-e-timed.c
index 69e6c07ca..cfc70f724 100644
--- a/host/apps/omap_debug/usrp-e-timed.c
+++ b/host/apps/omap_debug/usrp-e-timed.c
@@ -45,6 +45,9 @@ static void *read_thread(void *threadid)
printf("Greetings from the reading thread!\n");
+ bytes_transfered = 0;
+ gettimeofday(&start_time, NULL);
+
// IMPORTANT: must assume max length packet from fpga
rx_data = malloc(sizeof(struct usrp_transfer_frame) + sizeof(struct pkt) + (1016 * 2));
p = (struct pkt *) ((void *)rx_data + offsetof(struct usrp_transfer_frame, buf));
@@ -102,6 +105,9 @@ static void *write_thread(void *threadid)
printf("Greetings from the write thread!\n");
+ bytes_transfered = 0;
+ gettimeofday(&start_time, NULL);
+
tx_data = malloc(sizeof(struct usrp_transfer_frame) + sizeof(struct pkt) + (packet_data_length * 2));
p = (struct pkt *) ((void *)tx_data + offsetof(struct usrp_transfer_frame, buf));
printf("Address of tx_data = %p, p = %p\n", tx_data, p);