Changeset 8658 in ntrip for branches/BNC_2.12
- Timestamp:
- Apr 4, 2019, 8:45:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncrinex.cpp
r8643 r8658 170 170 } 171 171 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); 180 176 if (url.port() == -1) { 181 177 if (sklDir.contains("https", Qt::CaseInsensitive)) { … … 335 331 336 332 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); 344 334 ID = ID.toUpper(); 345 335
Note:
See TracChangeset
for help on using the changeset viewer.