Skip to content

Commit

Permalink
Change Art-Net length check fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
natcl authored Nov 9, 2018
1 parent 8aa00cc commit a3186f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Artnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ uint16_t Artnet::read()
Udp.read(artnetPacket, MAX_BUFFER_ARTNET);

// Check that packetID is "Art-Net" else ignore
for (byte i = 0 ; i < 9 ; i++)
for (byte i = 0 ; i < 8 ; i++)
{
if (artnetPacket[i] != ART_NET_ID[i])
return 0;
Expand Down

0 comments on commit a3186f1

Please sign in to comment.