Changeset 5567 in ntrip


Ignore:
Timestamp:
Nov 23, 2013, 6:32:37 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncephuser.h

    r5565 r5567  
    5151    dotRao      = 0.0;
    5252    eph         = 0;
    53     streamID[0] = 0;
    54     streamID[0] = 0;
    55     streamID[0] = 0;
     53    streamID[0] = -1;
     54    streamID[1] = -1;
     55    streamID[2] = -1;
    5656  }
    5757 
  • trunk/BNC/src/bncpppclient.cpp

    r5566 r5567  
    536536  bool different  = false;
    537537
     538  qDebug() << _providerID.streamID[0] << corr->streamID[0]
     539           << _providerID.streamID[1] << corr->streamID[1]
     540           << _providerID.streamID[2] << corr->streamID[2];
     541
    538542  for (unsigned ii = 0; ii < 3; ii++) {
    539543    if (_providerID.streamID[ii] != -1) {
    540544      alreadySet = true;
    541545    }
    542     if (_providerID.streamID[ii] != corr->streamID[ii]) {
    543       different = true;
    544     }
    545     _providerID.streamID[ii] = corr->streamID[ii];
     546    if (corr->streamID[ii] != -1) {
     547      if (_providerID.streamID[ii] != corr->streamID[ii]) {
     548        different = true;
     549      }
     550      _providerID.streamID[ii] = corr->streamID[ii];
     551    }
    546552  }
    547553   
     
    549555    _providerID.reset = true;
    550556  }
    551 }
     557
     558  qDebug() << _providerID.reset;
     559}
Note: See TracChangeset for help on using the changeset viewer.