Lines Matching full:current_state
264 struct light_state_t *current_state;
272 current_state = &dev->state;
284 if (current_state->flashMode) {
287 current_state->flashMode = LIGHT_FLASH_NONE;
293 *current_state = *state;
295 current_state->color = dev->transform(current_state->color);
298 if (current_state->flashMode) {
300 if (check_flash_state(current_state) == 0) {
305 current_state->flashMode = LIGHT_FLASH_NONE;
309 current_state->flashMode = LIGHT_FLASH_NONE;
312 rc = set_gpio_value(dev->pin, current_state->color);