解决开灯状态未同步的问题
This commit is contained in:
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define DEVICE_HIVERSION "1.0.0"
|
#define DEVICE_HIVERSION "1.0.0"
|
||||||
/* 设备固件版本号 */
|
/* 设备固件版本号 */
|
||||||
#define FIRMWARE_VER "1.0.4"
|
#define FIRMWARE_VER "1.0.5"
|
||||||
/* 设备硬件版本号 */
|
/* 设备硬件版本号 */
|
||||||
#define HARDWARE_VER "1.0.0"
|
#define HARDWARE_VER "1.0.0"
|
||||||
/* 设备软件版本号 */
|
/* 设备软件版本号 */
|
||||||
|
@ -903,7 +903,8 @@ int set_light(light_ctrl_source_e source,
|
|||||||
switch (source) {
|
switch (source) {
|
||||||
case APP_CLOSE_LIGHT:
|
case APP_CLOSE_LIGHT:
|
||||||
close_light();
|
close_light();
|
||||||
return 0;
|
start_report_task(REPORT_SWITCH | REPORT_LIGHT_MODE);
|
||||||
|
return -111;
|
||||||
break;
|
break;
|
||||||
case DEV_POWER_ON:
|
case DEV_POWER_ON:
|
||||||
case APP_OPEN_LIGHT:
|
case APP_OPEN_LIGHT:
|
||||||
@ -1427,6 +1428,8 @@ static void set_light2net_cfg_done(void)
|
|||||||
g_device_control.fade_time = NET_CFG_DEFAULT_FADE_TIME;
|
g_device_control.fade_time = NET_CFG_DEFAULT_FADE_TIME;
|
||||||
fade_ctx.current_brightness = g_device_control.brightness_local;
|
fade_ctx.current_brightness = g_device_control.brightness_local;
|
||||||
fade_ctx.current_cct = g_device_control.cct_local;
|
fade_ctx.current_cct = g_device_control.cct_local;
|
||||||
|
fade_ctx.target_brightness = g_device_control.brightness_local;
|
||||||
|
fade_ctx.target_cct = g_device_control.cct_local;
|
||||||
calculate_pwm_duty(&g_device_control);
|
calculate_pwm_duty(&g_device_control);
|
||||||
update_pwm_output(g_device_control.on, g_device_control.duty_cw, g_device_control.duty_ww);
|
update_pwm_output(g_device_control.on, g_device_control.duty_cw, g_device_control.duty_ww);
|
||||||
}
|
}
|
||||||
|
BIN
output/SR_light-LPT262_hilink-20250706-1.0.5.fwpkg
Normal file
BIN
output/SR_light-LPT262_hilink-20250706-1.0.5.fwpkg
Normal file
Binary file not shown.
BIN
output/package(SR_light-LPT262_hilink-20250706-1.0.5).zip
Normal file
BIN
output/package(SR_light-LPT262_hilink-20250706-1.0.5).zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user