We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5a36e5 commit 20ed6a8Copy full SHA for 20ed6a8
libs/v4l2_control.sh
@@ -44,10 +44,11 @@ function v4l2_control {
44
valueless="$(echo "${param}" | cut -d "=" -f1)"
45
opt_avail="$(v4l2-ctl -d "${device}" -L | \
46
grep -c "${valueless}" || true)"
47
- if [ "${opt_avail}" -eq "0" ]; then
48
- log_msg "Parameter '${param}' not available for '${device}'. Skipped."
+ if [[ "${opt_avail}" -eq "0" ]]; then
+ v4c_log_msg "Parameter '${param}' not available for '${device}'. Skipped."
49
else
50
- v4l2-ctl -d "${device}" -c "${param}" 2> /dev/null
+ v4l2-ctl -d "${device}" -c "${param}" 2> /dev/null ||
51
+ v4c_log_msg "Failed to set parameter: '${param}' ..."
52
fi
53
done
54
if [[ "${CROWSNEST_LOG_LEVEL}" == "debug" ]]; then
0 commit comments