Skip to content

Commit b44ffff

Browse files
committed
Fixed DDP override
1 parent 2bdaf53 commit b44ffff

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

wled00/bus_manager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,10 @@ class BusManager {
579579
return numBusses;
580580
}
581581

582+
//semi-duplicate of strip.getLengthTotal() (though that just returns strip._length, calculated in finalizeInit())
582583
uint16_t getTotalLength() {
583584
uint16_t len = 0;
584-
for (uint8_t i=0; i<numBusses; i++ ) len += busses[i]->getLength();
585+
for (uint8_t i=0; i<numBusses; i++) len += busses[i]->getLength();
585586
return len;
586587
}
587588

wled00/e131.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ void handleDDPPacket(e131_packet_t* p) {
3434

3535
realtimeLock(realtimeTimeoutMs, REALTIME_MODE_DDP);
3636

37-
for (uint16_t i = start; i < stop; i++) {
38-
setRealtimePixel(i, data[c], data[c+1], data[c+2], 0);
39-
c+=3;
37+
if (!realtimeOverride) {
38+
for (uint16_t i = start; i < stop; i++) {
39+
setRealtimePixel(i, data[c], data[c+1], data[c+2], 0);
40+
c+=3;
41+
}
4042
}
4143

4244
bool push = p->flags & DDP_PUSH_FLAG;

0 commit comments

Comments
 (0)