From 0c43487092789f333137d4a4cc11cfea30c94026 Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz Date: Tue, 16 Jan 2024 22:13:25 +0100 Subject: [PATCH] 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 --- libs/logging.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/logging.sh b/libs/logging.sh index f23be28b..aef72e09 100755 --- a/libs/logging.sh +++ b/libs/logging.sh @@ -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