Changeset 9615 in ntrip


Ignore:
Timestamp:
Jan 19, 2022, 11:04:33 PM (2 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/pppRun.cpp

    r9612 r9615  
    142142
    143143  QString roverName(_opt->_roverName.c_str());
    144   QString ID9("");
    145144  QString country;
    146145  QString monNum = "0";
     
    156155  int statIDlength = roverName.size() -1;
    157156  QString ID4 = roverName.left(4);
     157  QString ID9 = roverName.left(9);
    158158  ID4 = ID4.toUpper();
     159  ID4 = ID9.toUpper();
    159160  QListIterator<QString> it(settings.value("mountPoints").toStringList());
    160161  while (it.hasNext()) {
     
    175176  }
    176177
    177   ID9 = ID4 +
    178         QString("%1").arg(monNum, 1, 10) +
    179         QString("%1").arg(recNum, 1, 10) +
    180         country;
    181 
     178  if (ID9.size() < 9) {
     179    ID9 = ID4
     180        + QString("%1").arg(monNum, 1, 10)
     181        + QString("%1").arg(recNum, 1, 10)
     182        +  country;
     183  }
    182184  bool v2filenames = settings.value("PPP/v2filenames").toBool();
    183185  QString logFileSkl = settings.value("PPP/logPath").toString();
Note: See TracChangeset for help on using the changeset viewer.