Skip to content

Commit 0c43487

Browse files
authored
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 <[email protected]>
1 parent ae42a5b commit 0c43487

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/logging.sh

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ function print_cams {
100100
log_msg "INFO: Found ${total} total available Device(s)"
101101
fi
102102
if [[ "${libcamera}" -ne 0 ]]; then
103+
if [[ "$(is_pi5)" = "1" ]]; then
104+
log_msg "================================================================"
105+
log_msg " WARN: 'libcamera' devices are currently not supported on Pi 5! "
106+
log_msg "================================================================"
107+
fi
103108
for device in $(get_libcamera_path); do
104109
log_msg "Detected 'libcamera' device -> ${device}"
105110
done

0 commit comments

Comments
 (0)