adafruit / Adafruit_CircuitPython_NTP

Network Time Protocol (NTP) Helper for CircuitPython
MIT License
9 stars 18 forks source link

Make output of set_time() failures to console only show when needed #13

Closed krittick closed 3 years ago

krittick commented 3 years ago

Currently, any ValueError exception thrown by set_time() prints the error to the console. Since some boards can take a few seconds to acquire a time, this results in a lot of console spam such as the following:


_GET_TIME returned 0
_GET_TIME returned 0
_GET_TIME returned 0
_GET_TIME returned 0
_GET_TIME returned 0
etc...```