Home
last modified time | relevance | path

Searched refs:light_powerup (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/solutions/genie_mesh_demo/light_ctl/
A Dlight.c28 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()
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()
[all …]

Completed in 3 milliseconds