1. 取消了独立升级
2. 修复了渐变时会打断会导致显示中间值的问题
This commit is contained in:
@ -877,12 +877,12 @@ int set_light(light_ctrl_source_e source,
|
||||
cct_local_target = g_device_control.cct_local;
|
||||
}
|
||||
memcpy(&tmp_fade_ctx, &fade_ctx, FADE_CTRL_DATA_SIZE(fade_ctx));
|
||||
tmp_fade_ctx.target_brightness = tmp_fade_ctx.current_brightness;
|
||||
// tmp_fade_ctx.target_brightness = tmp_fade_ctx.current_brightness;
|
||||
if (brightness_local_target >= 0) {
|
||||
BRIGHTNESS_LITME_RANGE(brightness_local_target);
|
||||
tmp_fade_ctx.target_brightness = brightness_local_target;
|
||||
}
|
||||
tmp_fade_ctx.target_cct = tmp_fade_ctx.current_cct;
|
||||
// tmp_fade_ctx.target_cct = tmp_fade_ctx.current_cct;
|
||||
if (cct_local_target >= 0) {
|
||||
CCT_LITME_RANGE(cct_local_target);
|
||||
tmp_fade_ctx.target_cct = cct_local_target;
|
||||
|
Reference in New Issue
Block a user