Skip to content

Commit

Permalink
chore: add warning for libcamera on pi5
Browse files Browse the repository at this point in the history
We currently don't support libcamera devices on the Raspberry Pi 5.
This will add a warning before the libcamera device logging.

Signed-off-by: Patrick Gehrsitz <[email protected]>
  • Loading branch information
mryel00 committed Jan 16, 2024
1 parent 4d3e65a commit 3a97f9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ function print_cams {
log_msg "INFO: Found ${total} total available Device(s)"
fi
if [[ "${libcamera}" -ne 0 ]]; then
if [[ "$(is_pi5)" = "1" ]]; then
log_msg "================================================================"
log_msg " WARN: 'libcamera' devices are currently not supported on Pi 5! "
log_msg "================================================================"
fi
for device in $(get_libcamera_path); do
log_msg "Detected 'libcamera' device -> ${device}"
done
Expand Down

0 comments on commit 3a97f9f

Please sign in to comment.