fix: fixes logging empty value if not set or available

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2022-04-08 21:23:26 +02:00
parent 7c5188a7e0
commit 3692b310a5
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -114,7 +114,7 @@ function brokenfocus {
detected_broken_dev_msg
set_focus_absolute "${device}" "${conf_val}"
fi
if [ "$(log_level)" == "debug" ]; then
if [ "$(log_level)" == "debug" ] && [ -n "${cur_val}" ]; then
debug_focus_val_msg "$(get_current_value "${device}")"
fi
done