| 963 | // ── KS — CW keying speed (005-100 WPM, 3-digit) ───────────────────────────── |
| 964 | |
| 965 | QString SmartCatProtocol::cmdKS(const QString& arg) |
| 966 | { |
| 967 | TransmitModel& tx = m_model->transmitModel(); |
| 968 | if (arg.isEmpty()) |
| 969 | return "KS" + fmt3(tx.cwSpeed()) + ";"; |
| 970 | bool ok; |
| 971 | int wpm = arg.toInt(&ok); |
| 972 | if (!ok || wpm < 5 || wpm > 100) return "?;"; |
| 973 | tx.setCwSpeed(wpm); |
| 974 | return {}; |
| 975 | } |
| 976 | |
| 977 | // ── PT — CW pitch frequency (100-999 Hz, 3-digit; values < 100 silently ignored) |
| 978 |
nothing calls this directly
no test coverage detected