Skip to content

Commit 3b31b06

Browse files
authored
Update ntp_connection_manager.py
once more, with feeling
1 parent 6ecae6f commit 3b31b06

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/ntp_connection_manager.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@
2323
except ImportError:
2424
import board
2525
from digitalio import DigitalInOut
26+
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
2627

2728
# adjust with busio.SPI() as necessary...
2829
spi = board.SPI()
29-
try:
30-
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
31-
32-
# adjust pin for the specific board...
33-
eth_cs = DigitalInOut(board.D10)
34-
radio = WIZNET5K(spi, eth_cs)
35-
except ImportError:
36-
raise
30+
# adjust pin for the specific board...
31+
eth_cs = DigitalInOut(board.D10)
32+
radio = WIZNET5K(spi, eth_cs)
3733

3834
# get the socket pool from connection manager
3935
socket = adafruit_connection_manager.get_radio_socketpool(radio)

0 commit comments

Comments
 (0)