Skip to content

Commit

Permalink
Update functions.sh: output "RPi" and camera number
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jul 11, 2024
1 parent e1e4518 commit b6a2d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b6a2d1f

Please sign in to comment.