Changeset 8658 in ntrip


Ignore:
Timestamp:
Apr 4, 2019, 8:45:09 AM (8 months ago)
Author:
stuerze
Message:

minor changes reagarding skl filenames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncrinex.cpp

    r8643 r8658  
    170170  }
    171171  if (!sklDir.isEmpty() && sklDir != "none") {
    172     QString mtp;
    173     if (_rnxV3) {
    174       mtp = _mountPoint.path().mid(1,9).toUpper() + ".skl";
    175     }
    176     else {
    177       mtp = _mountPoint.path().mid(1,4).toLower() + ".skl";
    178     }
    179     QUrl url(sklDir + "/" + mtp);
     172    QString staID;
     173    int stIdLength = _mountPoint.path().length()-2;
     174    staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
     175    QUrl url(sklDir  + staID);
    180176    if (url.port() == -1) {
    181177      if (sklDir.contains("https", Qt::CaseInsensitive)) {
     
    335331
    336332  int statIDlength = _statID.size() -1;
    337   QString ID;
    338   if (_rnxV3) {
    339     ID = _statID.left(9);
    340   }
    341   else {
    342     ID = _statID.left(4);
    343   }
     333  QString ID = _statID.left(statIDlength);
    344334  ID = ID.toUpper();
    345335
Note: See TracChangeset for help on using the changeset viewer.