Restrict automatic recognition of CQ nnn calls to exactly nnn of 010 through 999 inclusive

The  values of  CQ 000  through  CQ 009  are reserved  for calling  by
numbers  to reduce  a pile  up e.g.  "CQ 2  P5/G4WJS" indicating  only
callers with  a 2 in their  callsign should call. Numeric  balues with
less  than 3  digits or  more  3 digits  are not  allowed in  standard
messages.

This is in line with the message source encoding protocol.

Thanks to Mike, W9MDB, for the cotribution this change was based on.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8572 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2018-03-18 20:38:42 +00:00
parent e19c93a3cd
commit 7ae483dc29
1 changed files with 1 additions and 1 deletions

View File

@ -4039,7 +4039,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
&& m_config.is_transceiver_online ()) {
bool ok;
auto kHz = parts[6].toUInt (&ok);
if (ok && kHz >= 10 && kHz <= 999) {
if (ok && kHz >= 10 && 3 == parts[6].size ()) {
// QSY Freq for answering CQ nnn
setRig (m_freqNominal / 1000000 * 1000000 + 1000 * kHz);
ui->decodedTextBrowser2->displayQSY (QString {"QSY %1"}.arg (m_freqNominal / 1e6, 7, 'f', 3));