Reduced code size by:
- removing WS2812FX::setMode() - removing WS2812FX::setColor() - removing floating point in transition - color handling modification in set.cpp - replaced uint8_t with unsigned in function parameters - inlined WS2812FX::isUpdating() - (MAY BE BREAKING) alexa & smartnest update
This commit is contained in:
@@ -126,10 +126,10 @@ void onAlexaChange(EspalexaDevice* dev)
|
||||
} else {
|
||||
colorKtoRGB(k, rgbw);
|
||||
}
|
||||
strip.setColor(0, RGBW32(rgbw[0], rgbw[1], rgbw[2], rgbw[3]));
|
||||
strip.getMainSegment().setColor(0, RGBW32(rgbw[0], rgbw[1], rgbw[2], rgbw[3]));
|
||||
} else {
|
||||
uint32_t color = dev->getRGB();
|
||||
strip.setColor(0, color);
|
||||
strip.getMainSegment().setColor(0, color);
|
||||
}
|
||||
stateUpdated(CALL_MODE_ALEXA);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user