MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / cmdSetSplitMode

Method cmdSetSplitMode

src/core/RigctlProtocol.cpp:1234–1248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232}
1233
1234QString RigctlProtocol::cmdSetSplitMode(const QString& args)
1235{
1236 QStringList parts = args.split(' ', Qt::SkipEmptyParts);
1237 dropVfoPrefix(parts); // "set_split_mode VFOB <mode>" in chk_vfo=1 mode
1238 if (parts.isEmpty()) return rprt(-1);
1239 // Canonical reverse table (same as cmdSetMode); the inline subset passed
1240 // CWR/RTTYR/WFM through unmapped, sending the radio an invalid mode (#7).
1241 const QString mode = hamlibToSmartSDR(parts[0]);
1242 return applySplitParam(
1243 [this, mode]{ m_pendingSplitMode = mode; },
1244 [mode](SliceModel* tx) {
1245 QMetaObject::invokeMethod(tx, [tx, mode]{ tx->setMode(mode); },
1246 Qt::QueuedConnection);
1247 });
1248}
1249
1250QString RigctlProtocol::cmdGetLevel(const QString& arg)
1251{

Callers

nothing calls this directly

Calls 3

dropVfoPrefixFunction · 0.85
isEmptyMethod · 0.45
setModeMethod · 0.45

Tested by

no test coverage detected