Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jeeps bug? #1220

Closed
tsteven4 opened this issue Nov 15, 2023 · 2 comments
Closed

jeeps bug? #1220

tsteven4 opened this issue Nov 15, 2023 · 2 comments

Comments

@tsteven4
Copy link
Collaborator

Jeeps was introduced in bb94c57 in 2002. At that time gpssend.c had a function GPS_Make_Packet, which included parameters UC data and int16 n. Presumably n is the number of unsigned characters in data.

Why is n being compared to DLE (#define DLE 0x10), which one would assume is the Data Link Escape ASCII character?

if(n == DLE)
{
++(*packet)->bytes;
*q++ = DLE;
}

Today this has led to a similar comparison:

if (in.n == DLE) {
++bytes;
*q++ = DLE;
}

@tsteven4
Copy link
Collaborator Author

This sounds like "DLE stuffing" as described in the Garmin Device Interface Specification.

@robertlipe
Copy link
Collaborator

robertlipe commented Nov 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants