Rev 886 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 886 | Rev 911 | ||
---|---|---|---|
Line 182... | Line 182... | ||
182 | msglen += ((uint16_t)c)<<8; |
182 | msglen += ((uint16_t)c)<<8; |
183 | cka += c; |
183 | cka += c; |
184 | ckb += cka; |
184 | ckb += cka; |
185 | // if the old data are not processed so far then break parsing now |
185 | // if the old data are not processed so far then break parsing now |
186 | // to avoid writing new data in ISR during reading by another function |
186 | // to avoid writing new data in ISR during reading by another function |
- | 187 | if ( *ubxSp == VALID ) |
|
- | 188 | { |
|
- | 189 | UpdateGPSInfo(); //update GPS info respectively |
|
187 | if ( *ubxSp == VALID ) ubxstate = UBXSTATE_IDLE; |
190 | ubxstate = UBXSTATE_IDLE; |
- | 191 | } |
|
188 | else // data invalid or allready processd |
192 | else // data invalid or allready processd |
189 | { |
193 | { |
190 | *ubxSp = INVALID; |
194 | *ubxSp = INVALID; |
191 | ubxstate = UBXSTATE_DATA; |
195 | ubxstate = UBXSTATE_DATA; |
192 | } |
196 | } |