Changeset 2710 in ntrip for trunk/BNC/GPSS
- Timestamp:
- Nov 18, 2010, 12:44:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/GPSS/gpssDecoder.cpp
r2709 r2710 21 21 using namespace std; 22 22 23 typedef structepochHeader {23 struct t_epochHeader { 24 24 double t_epoch; 25 25 int n_svs; 26 } EPOCHHEADER;26 }; 27 27 28 28 // Cyclic Redundancy Check … … 80 80 if (_buffer.length() > 0 && char(_buffer[1]) == 0x00) { 81 81 82 int reqLength = 2 + sizeof(recordSize) + sizeof( EPOCHHEADER);82 int reqLength = 2 + sizeof(recordSize) + sizeof(t_epochHeader); 83 83 84 84 if (_buffer.length() >= reqLength) { 85 EPOCHHEADERepochHdr;85 t_epochHeader epochHdr; 86 86 memcpy(&epochHdr, _buffer.data() + 2 + sizeof(recordSize), 87 87 sizeof(epochHdr)); … … 91 91 if (_buffer.length() >= reqLength) { 92 92 93 int checkLen = 2 + sizeof(recordSize) + sizeof( EPOCHHEADER) +93 int checkLen = 2 + sizeof(recordSize) + sizeof(t_epochHeader) + 94 94 epochHdr.n_svs * sizeof(t_obs); 95 95 memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
Note:
See TracChangeset
for help on using the changeset viewer.