Fixed DDP override
This commit is contained in:
parent
2bdaf53ecf
commit
b44ffffed8
@ -579,9 +579,10 @@ class BusManager {
|
|||||||
return numBusses;
|
return numBusses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//semi-duplicate of strip.getLengthTotal() (though that just returns strip._length, calculated in finalizeInit())
|
||||||
uint16_t getTotalLength() {
|
uint16_t getTotalLength() {
|
||||||
uint16_t len = 0;
|
uint16_t len = 0;
|
||||||
for (uint8_t i=0; i<numBusses; i++ ) len += busses[i]->getLength();
|
for (uint8_t i=0; i<numBusses; i++) len += busses[i]->getLength();
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,9 +34,11 @@ void handleDDPPacket(e131_packet_t* p) {
|
|||||||
|
|
||||||
realtimeLock(realtimeTimeoutMs, REALTIME_MODE_DDP);
|
realtimeLock(realtimeTimeoutMs, REALTIME_MODE_DDP);
|
||||||
|
|
||||||
for (uint16_t i = start; i < stop; i++) {
|
if (!realtimeOverride) {
|
||||||
setRealtimePixel(i, data[c], data[c+1], data[c+2], 0);
|
for (uint16_t i = start; i < stop; i++) {
|
||||||
c+=3;
|
setRealtimePixel(i, data[c], data[c+1], data[c+2], 0);
|
||||||
|
c+=3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool push = p->flags & DDP_PUSH_FLAG;
|
bool push = p->flags & DDP_PUSH_FLAG;
|
||||||
|
Loading…
Reference in New Issue
Block a user