fix: switch auto random with demo mode
Clang Lint CI / lint-no-video (push) Successful in 1m36s
Clang Build CI / run-no-video (push) Successful in 1m37s
Clang Build CI / run-video (push) Successful in 1m43s
Clang Build CI / build-release (push) Successful in 2m11s
Clang Lint CI / lint-video (push) Successful in 50s

This commit is contained in:
2026-08-28 18:01:27 +02:00
parent 0a43f3f582
commit 69f98e536f
+2 -2
View File
@@ -628,8 +628,8 @@ static bool compute_event(Context *context, StateConfig state_config,
if (code == state_config.key_demo) { if (code == state_config.key_demo) {
if (value > 0) { if (value > 0) {
log_info((context->demo ? "[%d] Demo OFF" : "[%d] Demo ON"), code); context->auto_random = context->demo = !context->demo;
context->demo = !context->demo; log_info((context->demo ? "[%d] Demo ON" : "[%d] Demo OFF"), code);
} }
found = true; found = true;
} }