fix: auto random debug string bad practice
This commit is contained in:
+2
-3
@@ -581,10 +581,9 @@ static bool compute_event(Context *context, StateConfig state_config,
|
|||||||
|
|
||||||
if (code == state_config.key_autorand) {
|
if (code == state_config.key_autorand) {
|
||||||
if (value > 0) {
|
if (value > 0) {
|
||||||
log_info((context->auto_random ? "[%d] Auto Random OFF"
|
|
||||||
: "[%d] Auto Random ON"),
|
|
||||||
code);
|
|
||||||
context->auto_random = !context->auto_random;
|
context->auto_random = !context->auto_random;
|
||||||
|
log_info("[%d] Auto Random %s", code,
|
||||||
|
context->auto_random ? "ON" : "OFF");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user