Skip to content

Commit

Permalink
Fix get_ethernet()
Browse files Browse the repository at this point in the history
mac is now passed in as bytes instead of a bytearray to match the WIZNET5K constructor.
  • Loading branch information
TristanWarder committed Jan 24, 2024
1 parent 4023287 commit 50d9729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p1am_200_helpers/p1am_200_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_ethernet(dhcp=True):
cs = DigitalInOut(board.D5)
spi_bus = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
mac = get_eeprom().mac
_eth_iface = WIZNET5K(spi_bus, cs, is_dhcp=dhcp, mac=mac)
_eth_iface = WIZNET5K(spi_bus, cs, is_dhcp=dhcp, mac=bytes(mac))
socket.set_interface(_eth_iface)
return _eth_iface

Expand Down

0 comments on commit 50d9729

Please sign in to comment.