Added missing brightness to preset DMX mode

pull/2891/head
mxklb 2022-11-23 00:38:42 +01:00
rodzic ae7eedf523
commit 043947fdcb
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -162,9 +162,13 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
setRealtimePixel(i, e131_data[dataOffset+1], e131_data[dataOffset+2], e131_data[dataOffset+3], wChannel);
break;
case DMX_MODE_PRESET: // 1 channel: WLED Preset number [#]
if (uni != e131Universe || availDMXLen < 1) return;
applyPreset(e131_data[dataOffset], CALL_MODE_NOTIFICATION);
case DMX_MODE_PRESET: // 2 channel: [Dimmer,Preset]
if (uni != e131Universe || availDMXLen < 2) return;
applyPreset(e131_data[dataOffset+1], CALL_MODE_NOTIFICATION);
if (bri != e131_data[dataOffset]) {
bri = e131_data[dataOffset];
strip.setBrightness(bri, true);
}
return;
break;