remove some over-optimizations (FASTPATH)

This commit is contained in:
Frank
2023-07-28 20:37:37 +02:00
parent 866c17f9e1
commit 553ac7bd82
2 changed files with 0 additions and 4 deletions

View File

@@ -423,9 +423,7 @@ BusNetwork::BusNetwork(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWhite) {
void BusNetwork::setPixelColor(uint16_t pix, uint32_t c) {
if (!_valid || pix >= _len) return;
if (hasWhite()) c = autoWhiteCalc(c);
#if !defined(WLEDMM_FASTPATH) // WLEDMM expensive operation
if (_cct >= 1900) c = colorBalanceFromKelvin(_cct, c); //color correction from CCT
#endif
uint16_t offset = pix * _UDPchannels;
_data[offset] = R(c);
_data[offset+1] = G(c);