Skip to content

Commit

Permalink
fix: fix crash with brokenfocus and camera-streamer
Browse files Browse the repository at this point in the history
  • Loading branch information
mryel00 committed Jan 6, 2024
1 parent 61421f5 commit 65f2ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/ustreamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ run_mjpg() {
run_ustreamer "${instance}" &
done
blockyfix
brokenfocus
brokenfocus "${cams}"
return
}

Expand Down
4 changes: 2 additions & 2 deletions libs/v4l2_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function brokenfocus {

function main {
local cur_val conf_val device
for cam in $(configured_cams); do
for cam in ${1}; do
device="$(get_param "cam ${cam}" device)"
cur_val="$(get_current_value "${device}")"
conf_val="$(get_conf_value "${cam}")"
Expand All @@ -133,7 +133,7 @@ function brokenfocus {
}

### MAIN
main
main "${1}"

}

Expand Down

0 comments on commit 65f2ab3

Please sign in to comment.