Skip to content

Commit d325253

Browse files
committed
rm stray code from other PR
1 parent cda7883 commit d325253

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

adafruit_ntp.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,6 @@ def datetime(self) -> time.struct_time:
102102
self.next_sync = destination + cache_offset * 1_000_000_000
103103
seconds = struct.unpack_from("!I", self._packet, offset=PACKET_SIZE - 8)[0]
104104

105-
# value should always be larger; giving a small buffer to handle jitter.
106-
if (seconds + 5) < self._monotonic_start:
107-
failed_offset = (self._monotonic_start - seconds) / 1_000_000_000
108-
raise ArithmeticError(
109-
"need a time machine, ntp time is "
110-
+ str(failed_offset)
111-
+ "seconds in the past."
112-
)
113-
114105
self._monotonic_start = (
115106
seconds
116107
+ self._tz_offset

0 commit comments

Comments
 (0)