mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-30 14:16:32 +00:00
Replace compare cycle with memcmp
This commit is contained in:
parent
6d1cfe5a07
commit
38433e56f7
@ -984,11 +984,9 @@ void LightAnimate(void)
|
||||
}
|
||||
|
||||
if ((Settings.light_scheme < LS_MAX) || !light_power) {
|
||||
for (uint8_t i = 0; i < light_subtype; i++) {
|
||||
if (light_last_color[i] != light_new_color[i]) {
|
||||
if (memcmp(light_last_color, light_new_color, light_subtype)) {
|
||||
light_update = 1;
|
||||
}
|
||||
}
|
||||
if (light_update) {
|
||||
light_update = 0;
|
||||
for (uint8_t i = 0; i < light_subtype; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user