http://mbed.org/users/okini3939/notebook/art-net/
Dependents: ArtNode ArtNode DMXStation ArtNodeLED ... more
Revision 1:c59dc374fc64, committed 2011-09-29
- Comitter:
- okini3939
- Date:
- Thu Sep 29 16:42:34 2011 +0000
- Parent:
- 0:629617d401de
- Child:
- 2:0753f1ed1dec
- Commit message:
Changed in this revision
DmxArtNet.cpp | Show annotated file Show diff for this revision Revisions of this file |
DmxArtNet.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DmxArtNet.cpp Thu Sep 29 15:46:43 2011 +0000 +++ b/DmxArtNet.cpp Thu Sep 29 16:42:34 2011 +0000 @@ -94,7 +94,6 @@ // int rxlen, pos; int pos; int x, y; - int err; unsigned char *RecvByte; if (rxlen >= sizeof(ArtPacketHeader)) { @@ -143,7 +142,8 @@ DmxIn[ArtDMX.Universes][pos] = RecvByte[8 + pos]; } DBG(" <Art-Dmx> Size: %d Univ: %d Ch1: %d\r\n", ArtDMX.Length, ArtDMX.Universes, DmxIn[ArtDMX.Universes][0]); - return 0; // something happened! + rxlen = 0; + return 1; // something happened! } break; // op_output @@ -159,9 +159,6 @@ // NYI Packet Type break; } // case packet type - - rxlen = 0; - return 1; } // waiting data }
--- a/DmxArtNet.h Thu Sep 29 15:46:43 2011 +0000 +++ b/DmxArtNet.h Thu Sep 29 16:42:34 2011 +0000 @@ -107,7 +107,8 @@ unsigned char Padding[32]; // padding } __attribute__((packed)); - +/** DmxArtNet class + */ class DmxArtNet { public: IpAddr BindIpAddress; // Local IP Address to bind onto