Advertisement
Guest User

Untitled

a guest
Aug 15th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 145d144
  2. < int datalen = (int)strlen(data);
  3. 148,155d146
  4. <
  5. < //check that the third character from the right is a *
  6. < //this signifies a checksum present in all complete gps messages
  7. <
  8. < if(datalen < 4 || data[datalen - 4] != '*') {
  9. < LOG(PHIDGET_LOG_DEBUG,"No checksum data present, invalid message\n");
  10. < return 1;
  11. < }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement