| 75 | } |
| 76 | |
| 77 | void 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 | |
| 90 | std::string ModemFSK::readSetting(std::string setting) { |
| 91 | if (setting == "bps") { |
nothing calls this directly
no outgoing calls
no test coverage detected