| 1232 | } |
| 1233 | |
| 1234 | QString 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 | |
| 1250 | QString RigctlProtocol::cmdGetLevel(const QString& arg) |
| 1251 | { |
nothing calls this directly
no test coverage detected