Skip to content

leds: keep test state active while paused to avoid artnet timeout #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion main/leds_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ TickType_t leds_test_wait(struct leds_state *state)

bool leds_test_active(struct leds_state *state, EventBits_t bits)
{
if (state->test->mode && state->test->frame_tick) {
if (state->test->mode) {
return true;
}

Expand All @@ -140,6 +140,12 @@ int leds_test_update(struct leds_state *state, EventBits_t bits)
state->test->frame_tick = xTaskGetTickCount();

LOG_INFO("test mode=%d", state->test->mode);
} else if (state->test->frame_tick) {

} else {
LOG_DEBUG("mode=%d auto=%d frame=%d frame_tick=%d -> idle", state->test->mode, state->test->auto_mode, state->test->frame, state->test->frame_tick);

return 0;
}

if ((frame_ticks = leds_set_test(state->leds, state->test->mode, state->test->frame)) < 0) {
Expand Down