Fixed DDP override

This commit is contained in:
cschwinne 2021-11-03 16:14:01 +01:00
parent 2bdaf53ecf
commit b44ffffed8
2 changed files with 7 additions and 4 deletions

View File

@ -579,6 +579,7 @@ class BusManager {
return numBusses;
}
//semi-duplicate of strip.getLengthTotal() (though that just returns strip._length, calculated in finalizeInit())
uint16_t getTotalLength() {
uint16_t len = 0;
for (uint8_t i=0; i<numBusses; i++) len += busses[i]->getLength();

View File

@ -34,10 +34,12 @@ void handleDDPPacket(e131_packet_t* p) {
realtimeLock(realtimeTimeoutMs, REALTIME_MODE_DDP);
if (!realtimeOverride) {
for (uint16_t i = start; i < stop; i++) {
setRealtimePixel(i, data[c], data[c+1], data[c+2], 0);
c+=3;
}
}
bool push = p->flags & DDP_PUSH_FLAG;
if (push) {