提交 2abbdfb1 编写于 作者: D dev

Solved freq unit problem

上级 0be68f75
......@@ -267,7 +267,7 @@ quint64 uhd_device::set_center_freq(const quint64 freq_in_hz)
double freq = 0;
UHD_DO(uhd_usrp_get_rx_freq(usrp, m_channel, &freq));
fprintf(stderr, "Actual RX frequency: %f MHz...\n", freq / 1e6);
return (quint64)(freq * 1e6 +.5);
return (quint64)(freq +.5);
}
double uhd_device::set_sample_rate(const double sprate)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册