From b6a2d1f7e7aed27ab642061bb6e69f071f7036e7 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Wed, 10 Jul 2024 22:12:50 -0500 Subject: [PATCH] Update functions.sh: output "RPi" and camera number --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 2d19df36c..15cbe8869 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -280,7 +280,7 @@ function get_connected_cameras_info() # Input: # camera_number : sensor [other stuff] LIBCAMERA_LOG_LEVELS=FATAL "${CMD_TO_USE_}" --list-cameras 2>&1 | - gawk '{ if ($1 ~ /^[0-9]/) print $3; }' + gawk '{ if ($1 ~ /^[0-9]/) printf("%s\t%d\t%s\n", "RPi", $2, $3); }' fi fi