File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,6 @@ def __init__(
63
63
self ._packet = bytearray (PACKET_SIZE )
64
64
self ._tz_offset = int (tz_offset * 60 * 60 )
65
65
self ._socket_timeout = socket_timeout
66
- self ._connect_mode = hasattr (self ._pool , "_interface" ) and getattr (
67
- self ._pool ._interface , "UDP_MODE" , None
68
- )
69
66
70
67
# This is our estimated start time for the monotonic clock. We adjust it based on the ntp
71
68
# responses.
@@ -91,10 +88,7 @@ def datetime(self) -> time.struct_time:
91
88
# Since the ESP32SPI doesn't support sendto, we are using
92
89
# connect + send to standardize code
93
90
sock .settimeout (self ._socket_timeout )
94
- if self ._connect_mode :
95
- sock .connect (self ._socket_address , self ._connect_mode )
96
- else :
97
- sock .connect (self ._socket_address )
91
+ sock .connect (self ._socket_address )
98
92
sock .send (self ._packet )
99
93
sock .recv_into (self ._packet )
100
94
# Get the time in the context to minimize the difference between it and receiving
You can’t perform that action at this time.
0 commit comments