chore: add warning for libcamera on pi5 (#235)

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>
This commit is contained in:
Patrick Gehrsitz 2024-01-16 22:13:25 +01:00 committed by GitHub
parent ae42a5b62c
commit 0c43487092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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