aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-04-27 08:17:46 +0000
committerPhilip Balister <philip@opensdr.com>2010-04-27 08:17:46 +0000
commit7953156249776ce7d45bb2a24c8ac88edb644c64 (patch)
treee8bdc80574dd473faa709b77a8941a40af76228b /host/apps
parentf5b6776a0b642c0357fbecdead9d2b1ac6ece3d3 (diff)
downloaduhd-7953156249776ce7d45bb2a24c8ac88edb644c64.tar.gz
uhd-7953156249776ce7d45bb2a24c8ac88edb644c64.tar.bz2
uhd-7953156249776ce7d45bb2a24c8ac88edb644c64.zip
Send only required number of bytes. Do it for longer.
Diffstat (limited to 'host/apps')
-rw-r--r--host/apps/omap_debug/usrp-e-rw-random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/apps/omap_debug/usrp-e-rw-random.c b/host/apps/omap_debug/usrp-e-rw-random.c
index 67d6ca803..c6a838067 100644
--- a/host/apps/omap_debug/usrp-e-rw-random.c
+++ b/host/apps/omap_debug/usrp-e-rw-random.c
@@ -114,7 +114,7 @@ static void *write_thread(void *threadid)
p->len = randN(1013) + 1;
p->checksum = calc_checksum(p);
tx_data->len = 12 + p->len * 2;
- cnt = write(fp, tx_data, 2048);
+ cnt = write(fp, tx_data, tx_data->len + 8);
}
sleep(random() >> 31);
}
@@ -141,7 +141,7 @@ int main(int argc, char *argv[])
exit(-1);
}
- sleep(10000);
+ sleep(1000000000);
printf("Done sleeping\n");
}