添加渐变时长为0的时候无法进行保存导致升级后灯打开的问题

This commit is contained in:
2025-06-18 07:55:36 +08:00
parent fff5e9cfbe
commit c2ac3319f2
3 changed files with 4 additions and 6 deletions

View File

@ -123,7 +123,6 @@ int myhandle_put_switch(const char* svc_id, const char* payload, unsigned int le
}
bool on = (item->valueint != 0);
g_device_control.on = on;
ret = set_switch(on);
cJSON_Delete(json);