-
Notifications
You must be signed in to change notification settings - Fork 18
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
OverflowError #35
Comments
What board are you running this on? A few small ones don't have long int support (where ints are allocated to the heap.) |
It's the qtpy esp32 s2 running 9.x:
|
Not sure if it's helpful, but:
Also confused why it works some of the time. |
Try printing seconds. I wonder if the struct unpack is causing the issue. |
since the failure is intermittent, I'm not sure if/when I'll be able to catch it. For now, here's the type and value:
|
ooo, I got one.
Note that's two calls, the second one failed. |
Test to ensure response value is valid. Intermittent seconds=0 value have been seen. fixes adafruit#35
sending two PRs. #37 prevents the socket call from happening every few seconds, which reduces the chances of failure. It's possible there's a better fix to the root cause, but these turn it into a known problem, at least. |
Test to ensure response value is valid. Intermittent seconds=0 value have been seen. fixes adafruit#35
After less than 24hrs, datetime() seems to fail right now. I haven't debugged what's causing it, though it seems to be from
self._monotonic_start
.Here's a link to the current version of the file:
Adafruit_CircuitPython_NTP/adafruit_ntp.py
Line 97 in 4a5775a
The text was updated successfully, but these errors were encountered: