Skip to content

Conversation

cullenfj
Copy link

mg_time() gets updated to a very large number after an SNTP reply, which results in an overflow when converting from double to long. Using mgos_uptime() instead should fix this.

@rojer
Copy link
Contributor

rojer commented Aug 15, 2017

not only that, but according to docs millis and micros are supposed to return uptime, not wall time.
i'll integrate this fix into our repo
thanks @cullenfj !

cesantabot pushed a commit that referenced this pull request Aug 16, 2017
h/t @cullenfj

Closes #1

PUBLISHED_FROM=f0eddefa74c695fea2a118f2884f95b5d446561c
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

Successfully merging this pull request may close these issues.

2 participants