fix: auto random debug string bad practice

This commit is contained in:
2026-05-16 18:45:18 +02:00
parent d89de9d6dd
commit efb13bb9ea
+2 -3
View File
@@ -581,10 +581,9 @@ static bool compute_event(Context *context, StateConfig state_config,
if (code == state_config.key_autorand) {
if (value > 0) {
log_info((context->auto_random ? "[%d] Auto Random OFF"
: "[%d] Auto Random ON"),
code);
context->auto_random = !context->auto_random;
log_info("[%d] Auto Random %s", code,
context->auto_random ? "ON" : "OFF");
}
return true;
}