Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGina Häußge <gina@octoprint.org>2018-03-05 12:09:47 +0300
committerGina Häußge <gina@octoprint.org>2018-03-05 12:09:47 +0300
commit87708f0ea553035832ea4d29d93c61eec5c987d9 (patch)
tree266bac7d56518b6881947fabcce2d8b99eca7860
parent4d2e66eed3d08b114f27088b878da1c3783ea31f (diff)
Fix definition of some broken webcams
They were only added to the (by default commented out) config line in octopi.txt but missing in webcamd. Also the defaults weren't properly documented.
-rw-r--r--src/modules/octopi/filesystem/boot/octopi.txt11
-rwxr-xr-xsrc/modules/octopi/filesystem/home/root/bin/webcamd2
2 files changed, 9 insertions, 4 deletions
diff --git a/src/modules/octopi/filesystem/boot/octopi.txt b/src/modules/octopi/filesystem/boot/octopi.txt
index 9440cd5..b09fa8b 100644
--- a/src/modules/octopi/filesystem/boot/octopi.txt
+++ b/src/modules/octopi/filesystem/boot/octopi.txt
@@ -36,16 +36,21 @@
#
# By default, this is done for the following devices:
# Logitech C170 (046d:082b)
+# GEMBIRD (1908:2310)
+# Genius F100 (0458:708c)
+# Cubeternet GL-UPC822 UVC WebCam (1e4e:0102)
#
# Using the following option it is possible to add additional devices. If
# your webcam happens to show above symptoms, try determining your cam's
# vendor and product id via lsusb, activating the line below by removing # and
-# adding it as shown examplatory.
+# adding it, e.g. for two broken cameras "aabb:ccdd" and "aabb:eeff"
+#
+# additional_brokenfps_usb_devices=("aabb:ccdd" "aabb:eeff")
#
# If this fixes your problem, please report it back so we can include the device
-# out of the box.
+# out of the box: https://github.com/guysoft/OctoPi/issues
#
-#additional_brokenfps_usb_devices=("046d:082b" "1908:2310" "1e4e:0102" "aabb:ccdd")
+#additional_brokenfps_usb_devices=()
### Additional options to supply to MJPG Streamer for the RasPi Cam
#
diff --git a/src/modules/octopi/filesystem/home/root/bin/webcamd b/src/modules/octopi/filesystem/home/root/bin/webcamd
index b4fc612..0a32aba 100755
--- a/src/modules/octopi/filesystem/home/root/bin/webcamd
+++ b/src/modules/octopi/filesystem/home/root/bin/webcamd
@@ -27,7 +27,7 @@ if [ -e "/boot/octopi.txt" ]; then
source "/boot/octopi.txt"
fi
-brokenfps_usb_devices=("046d:082b" "1908:2310" "0458:708c" "${additional_brokenfps_usb_devices[@]}")
+brokenfps_usb_devices=("046d:082b" "1908:2310" "0458:708c" "1e4e:0102" "${additional_brokenfps_usb_devices[@]}")
# check if array contains a string
function containsString() {