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

Variable tle->epoch Overflows #7

Open
mbineshaq opened this issue Nov 14, 2024 · 0 comments
Open

Variable tle->epoch Overflows #7

mbineshaq opened this issue Nov 14, 2024 · 0 comments

Comments

@mbineshaq
Copy link

tle->epoch is implemented as 'long', however, it stores UNIX Time in milliseconds which cause it to over flow. Changing the type in the TLE struct to 'long long' as well as updating the last a few lines in the parseEpoch() function does the trick.

Mind you I am using it on an STM32 Arm Cortex MCU. This could be a portabilty issue where the code runs fine on other machine but not this one.

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

1 participant