Lines Matching refs:light_powerup
28 static sig_model_powerup_t light_powerup[ELEMENT_NUM]; variable
60 light_powerup[0].last_onoff = 0; in genie_sal_ota_is_allow_reboot()
61 … genie_storage_write_userdata(GFI_MESH_POWERUP, (uint8_t *)light_powerup, sizeof(light_powerup)); in genie_sal_ota_is_allow_reboot()
111 …t = genie_storage_read_userdata(GFI_MESH_POWERUP, (uint8_t *)light_powerup, sizeof(light_powerup)); in light_elem_state_init()
117 … memcpy(&light_elem_stat[index].powerup, &light_powerup[index], sizeof(sig_model_powerup_t)); in light_elem_state_init()
222 light_powerup[p_elem->element_id].last_lightness = p_elem->state.lightness[TYPE_PRESENT]; in light_save_state()
226 …light_powerup[p_elem->element_id].last_color_temperature = p_elem->state.color_temperature[TYPE_PR… in light_save_state()
229 light_powerup[p_elem->element_id].last_onoff = p_elem->state.onoff[TYPE_PRESENT]; in light_save_state()
231 p_read = aos_malloc(sizeof(light_powerup)); in light_save_state()
237 genie_storage_read_userdata(GFI_MESH_POWERUP, p_read, sizeof(light_powerup)); in light_save_state()
239 if (memcmp(light_powerup, p_read, sizeof(light_powerup))) { in light_save_state()
240 LIGHT_DBG("save %d %d %d", light_powerup[0].last_onoff, light_powerup[0].last_lightness, in light_save_state()
241 light_powerup[0].last_color_temperature); in light_save_state()
242 … genie_storage_write_userdata(GFI_MESH_POWERUP, (uint8_t *)light_powerup, sizeof(light_powerup)); in light_save_state()
247 if (light_powerup[0].last_onoff == 0 && genie_ota_is_ready() == 1) { in light_save_state()