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

Method writeSetting

src/modules/modem/digital/ModemFSK.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void ModemFSK::writeSetting(std::string setting, std::string value) {
78 if (setting == "bps") {
79 bps = std::stoi(value);
80 rebuildKit();
81 } else if (setting == "sps") {
82 sps = std::stoi(value);
83 rebuildKit();
84 } else if (setting == "bw") {
85 bw = std::stof(value);
86 rebuildKit();
87 }
88}
89
90std::string ModemFSK::readSetting(std::string setting) {
91 if (setting == "bps") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected