Skip to content

Commit 25b722d

Browse files
authored
Merge pull request #194 from troyhacks/P4_experimental
P4 experimental
2 parents 2ebb61a + bcdd88b commit 25b722d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wled00/udp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,11 +881,11 @@ uint8_t IRAM_ATTR_YN realtimeBroadcast(uint8_t type, IPAddress client, uint16_t
881881
unsigned long timer = micros();
882882

883883
// Volumetric test code
884+
#ifdef ESP32 // Older ESP boards should not attempt this.
884885
uint8_t volume_depth = outputs*leds_per_output/length;
885886
static byte* buffer = nullptr; // Declare static buffer
886887
static size_t buffer_size = 0; // Track the buffer size
887888

888-
#ifdef ESP32 // the older ESP boards should not attempt this.
889889
if (volume_depth > 1) { // always assume to buffer output
890890
size_t new_size = (length * (isRGBW ? 4 : 3) * volume_depth);
891891
if (buffer == nullptr || buffer_size < new_size) {
@@ -901,6 +901,8 @@ uint8_t IRAM_ATTR_YN realtimeBroadcast(uint8_t type, IPAddress client, uint16_t
901901
} else {
902902
buffer = buffer_in;
903903
}
904+
#else
905+
buffer = buffer_in;
904906
#endif
905907

906908
AsyncUDP artnetudp;// AsyncUDP so we can just blast packets.

0 commit comments

Comments
 (0)