Skip to content

Commit

Permalink
Merge pull request #827 from AndreasLMeg/patch-4
Browse files Browse the repository at this point in the history
Cleanup: bullseye has problems to detect cameras - workaround
  • Loading branch information
EricClaeys authored Dec 2, 2021
2 parents de5e448 + 06af3a5 commit d67d982
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion allsky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ ps -ef | grep allsky.sh | grep -v $$ | xargs "sudo kill -9" 2>/dev/null
# old/regular manual camera selection mode => exit if no requested camera was found
# Buster and Bullseye have different output so only check the part they have in common.
# TODO: this check only needs to be done if CAMERA = RPiHQ
vcgencmd get_camera | grep --silent "supported=1"
# vcgencmd get_camera | grep --silent "supported=1"
# bullseye has problems to dedect cameras - workaround
which libcamera-still
if [ $? -eq 0 ]; then
LIBCAMERA_LOG_LEVELS="ERROR,FATAL" libcamera-still -t 1 --nopreview
else
vcgencmd get_camera | grep --silent "supported=1"
fi

if [ $? -eq 0 ]; then
RPiHQIsPresent=1
else
Expand Down

0 comments on commit d67d982

Please sign in to comment.