Skip to content

Commit

Permalink
Fix for OctoPrint#1, display none if there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSin- committed Jun 15, 2023
1 parent 07cbea6 commit cfa8c6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/list-cameras
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ for path in /dev/v4l/by-id/usb-*-video-index0; do
echo
v4l2-ctl --device "$path" --all --list-formats --list-formats-ext
else
echo " $path"
echo " None available"
fi
done

echo
echo "Available libcamera devices:"
/usr/bin/libcamera-hello --list-cameras
if [ -e /usr/bin/libcamera-hello ]; then
/usr/bin/libcamera-hello --list-cameras
else
echo " None available"
fi

0 comments on commit cfa8c6d

Please sign in to comment.