diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-07-19 22:12:18 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-07-19 22:12:18 +0200 |
commit | 343df6eb8792b3efd33f4426766865ae03ccf316 (patch) | |
tree | b2c05c7adb4774a88d15a46ae040c3428194ed64 /src/GainControl.cpp | |
parent | d521d4f0c5ad3b663a322453c5798626081cb1f3 (diff) | |
download | dabmod-343df6eb8792b3efd33f4426766865ae03ccf316.tar.gz dabmod-343df6eb8792b3efd33f4426766865ae03ccf316.tar.bz2 dabmod-343df6eb8792b3efd33f4426766865ae03ccf316.zip |
Add events
Diffstat (limited to 'src/GainControl.cpp')
-rw-r--r-- | src/GainControl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GainControl.cpp b/src/GainControl.cpp index beb93f6..84cf065 100644 --- a/src/GainControl.cpp +++ b/src/GainControl.cpp @@ -586,18 +586,18 @@ const string GainControl::get_parameter(const string& parameter) const const json::map_t GainControl::get_all_values() const { json::map_t map; - map["digital"] = m_digGain; + map["digital"].v = m_digGain; switch (m_gainmode) { case GainMode::GAIN_FIX: - map["mode"] = "fix"; + map["mode"].v = "fix"; break; case GainMode::GAIN_MAX: - map["mode"] = "max"; + map["mode"].v = "max"; break; case GainMode::GAIN_VAR: - map["mode"] = "var"; + map["mode"].v = "var"; break; } - map["var"] = m_var_variance_rc; + map["var"].v = m_var_variance_rc; return map; } |