diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-06 14:55:51 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-06 14:55:51 -0800 |
commit | 8ff8f206d317e8d9c026fef9228a80edc241f9d4 (patch) | |
tree | 13d92279b6bd124e5646dcef246523a57018e052 /host | |
parent | aab82ad7470a68503f44645ca18d5b4686c784e1 (diff) | |
download | uhd-8ff8f206d317e8d9c026fef9228a80edc241f9d4.tar.gz uhd-8ff8f206d317e8d9c026fef9228a80edc241f9d4.tar.bz2 uhd-8ff8f206d317e8d9c026fef9228a80edc241f9d4.zip |
uhd: fixed compilation error on tx waveforms
Diffstat (limited to 'host')
-rw-r--r-- | host/examples/tx_waveforms.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp index aaabf5460..469e27621 100644 --- a/host/examples/tx_waveforms.cpp +++ b/host/examples/tx_waveforms.cpp @@ -100,7 +100,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ desc.add_options() ("help", "help message") ("args", po::value<std::string>(&args)->default_value(""), "single uhd device address args") - ("spb", po::value<size_t>(&spb)->default_value(0), "samples per buffer, 0 for default") + ("spb", po::value<size_t>(&spb)->default_value(10000), "samples per buffer") ("rate", po::value<double>(&rate), "rate of outgoing samples") ("freq", po::value<double>(&freq), "RF center frequency in Hz") ("ampl", po::value<float>(&l)->default_value(float(0.3)), "amplitude of the waveform [0 to 0.7]") @@ -203,7 +203,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ double theta = 0; //allocate a buffer which we re-use for each channel - if (spb == 0) spb = tx_stream->get_max_num_samps()*10; std::vector<std::complex<float> > buff(spb); std::vector<std::complex<float> *> buffs(usrp->get_tx_num_channels(), &buff.front()); |