Skip to content

Commit

Permalink
Merge pull request #4 from facts-engineering/remove-socketpoolcontants
Browse files Browse the repository at this point in the history
Removed SocketPoolContants
  • Loading branch information
TristanWarder authored May 23, 2024
2 parents 7c6f947 + 399d17c commit c832abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p1am_200_helpers/ntp_rtc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""
import struct
import time
from adafruit_wiznet5k.adafruit_wiznet5k_socketpool import SocketPoolContants
import adafruit_wiznet5k.adafruit_wiznet5k_socketpool as socketpool

class NTPException(Exception):
"""Exception for NTP errors"""
Expand Down Expand Up @@ -54,7 +54,7 @@ def get_epoch(self):
recv_data = None
attempts = 0

client = self.socketpool.socket(type=SocketPoolContants.SOCK_DGRAM)
client = self.socketpool.socket(type=socketpool.SocketPool.SOCK_DGRAM)
client.settimeout(self.timeout)

while attempts < self.retries:
Expand Down

0 comments on commit c832abd

Please sign in to comment.