diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-07-19 20:26:36 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-07-19 20:26:36 +0200 |
commit | d521d4f0c5ad3b663a322453c5798626081cb1f3 (patch) | |
tree | 1741d2a9d1ba69a351d034cc81815a73181a462a /src/output/SDR.cpp | |
parent | 8a547d0c0a84ea5a3464c7bc82a45f78aaae81c0 (diff) | |
download | dabmod-d521d4f0c5ad3b663a322453c5798626081cb1f3.tar.gz dabmod-d521d4f0c5ad3b663a322453c5798626081cb1f3.tar.bz2 dabmod-d521d4f0c5ad3b663a322453c5798626081cb1f3.zip |
Change RC showjson command
Diffstat (limited to 'src/output/SDR.cpp')
-rw-r--r-- | src/output/SDR.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index 11321f2..4fc3277 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -450,7 +450,7 @@ const string SDR::get_parameter(const string& parameter) const if (m_device) { const auto stat = m_device->get_run_statistics(); try { - const auto& value = stat.at(parameter); + const auto& value = stat.at(parameter).data; if (std::holds_alternative<string>(value)) { ss << std::get<string>(value); } @@ -485,9 +485,9 @@ const string SDR::get_parameter(const string& parameter) const return ss.str(); } -const RemoteControllable::map_t SDR::get_all_values() const +const json::map_t SDR::get_all_values() const { - map_t stat = m_device->get_run_statistics(); + json::map_t stat = m_device->get_run_statistics(); stat["txgain"] = m_config.txgain; stat["rxgain"] = m_config.rxgain; |