Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 145d144
- < int datalen = (int)strlen(data);
- 148,155d146
- <
- < //check that the third character from the right is a *
- < //this signifies a checksum present in all complete gps messages
- <
- < if(datalen < 4 || data[datalen - 4] != '*') {
- < LOG(PHIDGET_LOG_DEBUG,"No checksum data present, invalid message\n");
- < return 1;
- < }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement