remove some over-optimizations (FASTPATH)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -88,9 +88,7 @@ void _overlayAnalogCountdown()
|
||||
}
|
||||
|
||||
void handleOverlayDraw() {
|
||||
#if !defined(WLEDMM_FASTPATH) // WLEDMM expensive operation, and most usermods don't draw overlays
|
||||
usermods.handleOverlayDraw();
|
||||
#endif
|
||||
if (overlayCurrent == 1) _overlayAnalogClock();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user