MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / selectDemodById

Method selectDemodById

decoder_modules/radio/src/main.cpp:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 void selectDemodById(int id) {
197 demodId = id;
198 if (id == 0) { selectDemod(&fmDemod); }
199 if (id == 1) { selectDemod(&wfmDemod); }
200 if (id == 2) { selectDemod(&amDemod); }
201 if (id == 3) { selectDemod(&dsbDemod); }
202 if (id == 4) { selectDemod(&usbDemod); }
203 if (id == 5) { selectDemod(&cwDemod); }
204 if (id == 6) { selectDemod(&lsbDemod); }
205 if (id == 7) { selectDemod(&rawDemod); }
206 config.acquire();
207 config.conf[name]["selectedDemodId"] = demodId;
208 config.release(true);
209 }
210
211 std::string name;
212 bool enabled = true;

Callers 2

menuHandlerMethod · 0.80

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected