From 3692b310a5734f223280af5b2600c331e14c3a33 Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Fri, 8 Apr 2022 21:23:26 +0200 Subject: [PATCH] fix: fixes logging empty value if not set or available Signed-off-by: Stephan Wendel --- libs/v4l2_control.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/v4l2_control.sh b/libs/v4l2_control.sh index 3e68364..f188439 100755 --- a/libs/v4l2_control.sh +++ b/libs/v4l2_control.sh @@ -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