Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dipso_onoff_switch.c54 static struct ipso_switch_data switch_data[MAX_INSTANCE_COUNT]; variable
102 if (switch_data[i].state) { in state_post_write_cb()
104 switch_data[i].off_time_sec = 0; in state_post_write_cb()
105 if (!switch_data[i].last_state) { in state_post_write_cb()
107 switch_data[i].counter++; in state_post_write_cb()
108 if (switch_data[i].counter < 0) { in state_post_write_cb()
109 switch_data[i].counter = 0; in state_post_write_cb()
114 switch_data[i].on_time_sec = 0; in state_post_write_cb()
117 switch_data[i].last_state = switch_data[i].state; in state_post_write_cb()
118 switch_data[i].trigger_offset = k_uptime_get(); in state_post_write_cb()
[all …]