Skip to content

Commit

Permalink
chore: add warning for libcamera on pi5 (#235)
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 <mryel00.github@gmail.com>
  • Loading branch information
mryel00 authored Jan 16, 2024
1 parent ae42a5b commit 0c43487
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 0c43487

Please sign in to comment.