diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-15 10:58:11 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-15 10:58:11 +0200 |
commit | a759d1fae861e7f0836283dae5dce49dae6528fc (patch) | |
tree | 23694a2bcc40cb075988eda7300b1ee42cf07d61 /src/output | |
parent | 2980f73251c631960fcbe048eda861afa7a1be89 (diff) | |
download | dabmod-a759d1fae861e7f0836283dae5dce49dae6528fc.tar.gz dabmod-a759d1fae861e7f0836283dae5dce49dae6528fc.tar.bz2 dabmod-a759d1fae861e7f0836283dae5dce49dae6528fc.zip |
Add parameters sdr.synchronous and mainloop.running_since
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/SDR.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index d57e4d6..e466287 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -84,6 +84,7 @@ SDR::SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device) : RC_ADD_PARAMETER(underruns, "Counter of number of underruns"); RC_ADD_PARAMETER(latepackets, "Counter of number of late packets"); RC_ADD_PARAMETER(frames, "Counter of number of frames modulated"); + RC_ADD_PARAMETER(synchronous, "1 if configured for synchronous transmission"); #ifdef HAVE_OUTPUT_UHD if (std::dynamic_pointer_cast<UHD>(device)) { @@ -435,6 +436,9 @@ const string SDR::get_parameter(const string& parameter) const chrono::duration_cast<chrono::milliseconds>(transmission_frame_duration(m_config.dabMode)) .count(); } + else if (parameter == "synchronous") { + ss << m_config.enableSync; + } else { if (m_device) { const auto stat = m_device->get_run_statistics(); @@ -494,6 +498,8 @@ const json::map_t SDR::get_all_values() const (size_t)chrono::duration_cast<chrono::milliseconds>(transmission_frame_duration(m_config.dabMode)) .count(); + stat["synchronous"].v = m_config.enableSync; + return stat; } |