MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / readSetting

Method readSetting

src/modules/modem/analog/ModemCW.cpp:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::string ModemCW::readSetting(std::string setting) {
83 if (setting == "offset") {
84 return std::to_string(mBeepFrequency);
85 } else if (setting == "auto") {
86 return (mAutoGain) ? "on" : "off";
87 } else if (setting == "gain") {
88 return std::to_string(mGain);
89 }
90 return "";
91}
92
93ModemBase *ModemCW::factory() {
94 return new ModemCW;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected