diff options
author | Josh Blum <josh@joshknows.com> | 2011-08-21 01:24:27 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-08-31 18:44:34 -0700 |
commit | 0fa5508ccca415c82fa005312f42060e5ed3c2bf (patch) | |
tree | 7a2883b30e4b6518818cdd259ee05e9d75a7cc23 /host | |
parent | 20d5a87352ea1a29d102f9b693062684f9555446 (diff) | |
download | uhd-0fa5508ccca415c82fa005312f42060e5ed3c2bf.tar.gz uhd-0fa5508ccca415c82fa005312f42060e5ed3c2bf.tar.bz2 uhd-0fa5508ccca415c82fa005312f42060e5ed3c2bf.zip |
e100: only generate random _even_ sizes for loopback
Diffstat (limited to 'host')
-rw-r--r-- | host/usrp_e_utils/usrp-e-loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/usrp_e_utils/usrp-e-loopback.c b/host/usrp_e_utils/usrp-e-loopback.c index 6730967de..bf0bb7d43 100644 --- a/host/usrp_e_utils/usrp-e-loopback.c +++ b/host/usrp_e_utils/usrp-e-loopback.c @@ -200,7 +200,7 @@ static void *write_thread(void *threadid) if (packet_data_length > 0) p->len = packet_data_length; else - p->len = (random() & 0x1ff) + (1004 - 512); + p->len = (random() & 0x1fe) + (1000 - 512); p->words32 = 4 /*hdr*/ + p->len/2; |