Skip to content

Documentation error on kno.wled.ge UDP Sync page #4496

@Christanoid

Description

@Christanoid

According to the Documentation there is no DNRGBW
Image

Looking at the code dnrgbw is in fact implemented, just not documented, as visible in udp.cpp

} else if (udpIn[0] == 4 && packetSize > 7) //dnrgb
{
  unsigned id = ((udpIn[3] << 0) & 0xFF) + ((udpIn[2] << 8) & 0xFF00);
  for (size_t i = 4; i < packetSize -2 && id < totalLen; i += 3, id++)
  {
    setRealtimePixel(id, udpIn[i], udpIn[i+1], udpIn[i+2], 0);
  }
} else if (udpIn[0] == 5 && packetSize > 8) //dnrgbw
{
  unsigned id = ((udpIn[3] << 0) & 0xFF) + ((udpIn[2] << 8) & 0xFF00);
  for (size_t i = 4; i < packetSize -2 && id < totalLen; i += 4, id++)
  {
    setRealtimePixel(id, udpIn[i], udpIn[i+1], udpIn[i+2], udpIn[i+3]);
  }
}

Sadly I don't know where / if the documentation source code is set and can't find it, so this fyi instead. Sorry.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions