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
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:
+2
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user