Skip to content

Commit

Permalink
Minor tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
troyhacks committed Mar 19, 2024
1 parent d398a4d commit b1a099c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wled00/udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,14 +860,14 @@ uint8_t realtimeBroadcast(uint8_t type, IPAddress client, uint16_t length, uint8

sequenceNumber++;

for (size_t hardware_output = 0; hardware_output < hardware_outputs; hardware_output++){
if (sequenceNumber > 255) sequenceNumber = 0;

for (size_t hardware_output = 0; hardware_output < hardware_outputs; hardware_output++) {

size_t channels_remaining = channels_per_hardware_output;

while (channels_remaining > 0) {

if (sequenceNumber > 255) sequenceNumber = 0;

if (!ddpUdp.beginPacket(client, ARTNET_DEFAULT_PORT)) {
DEBUG_PRINTLN(F("Art-Net WiFiUDP.beginPacket returned an error"));
return 1; // borked
Expand Down

0 comments on commit b1a099c

Please sign in to comment.