diff options
Diffstat (limited to 'src/output/Soapy.cpp')
-rw-r--r-- | src/output/Soapy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/Soapy.cpp b/src/output/Soapy.cpp index 8ee420e..3093b65 100644 --- a/src/output/Soapy.cpp +++ b/src/output/Soapy.cpp @@ -97,6 +97,13 @@ Soapy::Soapy(SDRDeviceConfig& config) : etiLog.level(info) << "SoapySDR:Actual tx antenna: " << m_device->getAntenna(SOAPY_SDR_TX, 0); + if (m_device->hasHardwareTime()) { + using namespace std::chrono; + auto n = system_clock::now(); + const long long ticks = duration_cast<nanoseconds>(n.time_since_epoch()).count(); + m_device->setHardwareTime(ticks); + } + const std::vector<size_t> channels({0}); m_tx_stream = m_device->setupStream(SOAPY_SDR_TX, "CF32", channels); m_device->activateStream(m_tx_stream); |