fix: fix func detect_libcamera
If libcamera of arducam is used, we need to get rid of its output, compared to raspi foundations libcamera output Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
parent
a07e42a1ac
commit
0c524b725d
@ -63,7 +63,7 @@ detect_libcamera() {
|
|||||||
local avail
|
local avail
|
||||||
if [[ "$(is_raspberry_pi)" = "1" ]] &&
|
if [[ "$(is_raspberry_pi)" = "1" ]] &&
|
||||||
[[ -x "$(command -v libcamera-hello)" ]]; then
|
[[ -x "$(command -v libcamera-hello)" ]]; then
|
||||||
avail="$(libcamera-hello --list-cameras | awk 'NR==1 {print $1}')"
|
avail="$(libcamera-hello --list-cameras | sed '/^\[.*\].*/d' | awk 'NR==1 {print $1}')"
|
||||||
if [[ "${avail}" = "Available" ]]; then
|
if [[ "${avail}" = "Available" ]]; then
|
||||||
echo "1"
|
echo "1"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user