GithubHelp home page GithubHelp logo

Comments (8)

nanu-c avatar nanu-c commented on September 17, 2024

In the ArtPoll packet definition (http://www.artisticlicence.com/WebSiteMaster/User%20Guides/art-net.pdf) the ID is an

Array of 8 characters, the final character is a
null termination.
Value = ‘A’ ‘r’ ‘t’ ‘-‘ ‘N’ ‘e’ ‘t’ 0x00

So you are right

from artnet.

 avatar commented on September 17, 2024

the loop is from index zero to kess the 9: 0...8
Index 8 is undefined:
‘A’ [0]
‘r’ [1]
‘t’ [2]
‘-‘ [3]
‘N’ [4]
‘e’ [5]
‘t’ [6]
0x00 [7]
??? [8]

from artnet.

nanu-c avatar nanu-c commented on September 17, 2024

Then make a pull request please, but for me it was never a problem.

from artnet.

 avatar commented on September 17, 2024

Your code:

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

should be IMHO:

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

from artnet.

 avatar commented on September 17, 2024

Why should I make a pull request? Just change the 9 into a 8...

I'm not using this library but someone complained that it does not work with Rocrail:
http://forum.rocrail.net/viewtopic.php?f=117&t=12727

Index 8 is the first byte of the opcode as you also wrote in your source:
opcode = artnetPacket[8] | artnetPacket[9] << 8;

from artnet.

nanu-c avatar nanu-c commented on September 17, 2024

Actually i am not the owner of this repository so i am not able to change it

from artnet.

 avatar commented on September 17, 2024

Attach is a patch.

fixcheckingid.diff.zip

from artnet.

natcl avatar natcl commented on September 17, 2024

Thanks.
Fixed by commit 5cc30a4

from artnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.