From 8e3ee0021eacb135c0826e73f40dfa533fada0a0 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Tue, 14 Aug 2012 09:10:45 -0700 Subject: utils: minor uhd_images_downloader cleanup --- host/utils/uhd_images_downloader.py.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/host/utils/uhd_images_downloader.py.in b/host/utils/uhd_images_downloader.py.in index be76f5b2d..6aa619660 100644 --- a/host/utils/uhd_images_downloader.py.in +++ b/host/utils/uhd_images_downloader.py.in @@ -46,8 +46,7 @@ if __name__ == "__main__": u = urllib2.urlopen(images_src) f = open(filename, "wb") meta = u.info() - #filesize = int(meta.getheaders("Content-Length")[0]) - filesize = float(int(meta.getheaders("Content-Length")[0])) + filesize = float(meta.getheaders("Content-Length")[0]) print "Downloading images from: %s" % images_src -- cgit v1.2.3 From 584b7ae26c4e61688c06043a0587ca50ac83b1dc Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 14 Aug 2012 13:47:48 -0700 Subject: usrp2: fix program_stream_dest (arp for dest) The send buffer should be reset ASAP so it gets flushed out. --- host/lib/usrp/usrp2/io_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index ea4aa716c..e06cf8f6f 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -395,6 +395,7 @@ void usrp2_impl::program_stream_dest( managed_send_buffer::sptr send_buff = xport->get_send_buff(); std::memcpy(send_buff->cast(), &stream_ctrl, sizeof(stream_ctrl)); send_buff->commit(sizeof(stream_ctrl)); + send_buff.reset(); boost::this_thread::sleep(boost::posix_time::milliseconds(300)); managed_recv_buffer::sptr recv_buff = xport->get_recv_buff(0.0); if (recv_buff and recv_buff->size() >= sizeof(boost::uint32_t)){ -- cgit v1.2.3