Skip to content

Commit

Permalink
Try handling into to bytes on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Dec 28, 2023
1 parent e104e4a commit 4e7fb31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ def build_ArtPollReply(self):
ip = DMX_Network.cards(None, None)[-1][0]
else:
ip = "0.0.0.0"
print(DMX_Network.cards(None, None))
ip = [int(i) for i in ip.split(".")]
print("ip", ip)
content += [i.to_bytes() for i in ip]
content += [i.to_bytes(length=1) for i in ip]
# Port
content.append(struct.pack("<H", 0x1936))
# Firmware Version
Expand Down

0 comments on commit 4e7fb31

Please sign in to comment.