aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/cores
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-09 17:59:48 -0800
committerJosh Blum <josh@joshknows.com>2012-02-09 17:59:48 -0800
commit115100034071b3b58de1fce7c795995f6ee615a1 (patch)
tree48909ad3435835d0ec70631faf252285368c8b41 /host/lib/usrp/cores
parentb6da2fe9af84663fa4dda923833e2319433b6f20 (diff)
downloaduhd-115100034071b3b58de1fce7c795995f6ee615a1.tar.gz
uhd-115100034071b3b58de1fce7c795995f6ee615a1.tar.bz2
uhd-115100034071b3b58de1fce7c795995f6ee615a1.zip
uhd: various tweaks for compiler warns and valgrind
Diffstat (limited to 'host/lib/usrp/cores')
-rw-r--r--host/lib/usrp/cores/rx_dsp_core_200.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/cores/rx_dsp_core_200.cpp b/host/lib/usrp/cores/rx_dsp_core_200.cpp
index ea0384dbe..cebf92f6a 100644
--- a/host/lib/usrp/cores/rx_dsp_core_200.cpp
+++ b/host/lib/usrp/cores/rx_dsp_core_200.cpp
@@ -121,7 +121,7 @@ public:
//issue the stream command
_iface->poke32(REG_RX_CTRL_STREAM_CMD, cmd_word);
- const boost::uint64_t ticks = stream_cmd.time_spec.to_ticks(_tick_rate);
+ const boost::uint64_t ticks = (stream_cmd.stream_now)? 0 : stream_cmd.time_spec.to_ticks(_tick_rate);
_iface->poke32(REG_RX_CTRL_TIME_HI, boost::uint32_t(ticks >> 32));
_iface->poke32(REG_RX_CTRL_TIME_LO, boost::uint32_t(ticks >> 0)); //latches the command
}