summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-04-09 10:59:15 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-04-09 10:59:15 +0200
commit1527e795bebd77fcbc8bdc1d5d4f7ff4fd4a59ce (patch)
tree02e52611bd2c194dbe1092aa0320b8ac7fa51006 /plugins
parent67f037be26c0dcbd91b93c26f2f9f52be3ce4e6b (diff)
downloaduca-1527e795bebd77fcbc8bdc1d5d4f7ff4fd4a59ce.tar.gz
uca-1527e795bebd77fcbc8bdc1d5d4f7ff4fd4a59ce.tar.bz2
uca-1527e795bebd77fcbc8bdc1d5d4f7ff4fd4a59ce.tar.xz
uca-1527e795bebd77fcbc8bdc1d5d4f7ff4fd4a59ce.zip
ufo: trigger type must be 0 for AUTO mode
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ufo/uca-ufo-camera.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c
index b167f87..d7a5894 100644
--- a/plugins/ufo/uca-ufo-camera.c
+++ b/plugins/ufo/uca-ufo-camera.c
@@ -318,7 +318,8 @@ uca_ufo_camera_start_recording(UcaCamera *camera, GError **error)
"trigger-type", &trigger_type,
NULL);
- set_control_bit (priv, 15, trigger_type == UCA_CAMERA_TRIGGER_TYPE_EDGE);
+ set_control_bit (priv, 15, trigger_type == UCA_CAMERA_TRIGGER_TYPE_EDGE &&
+ trigger_source == UCA_CAMERA_TRIGGER_SOURCE_EXTERNAL);
set_control_bit (priv, 11, trigger_source == UCA_CAMERA_TRIGGER_SOURCE_AUTO);
set_control_bit (priv, 14, trigger_source == UCA_CAMERA_TRIGGER_SOURCE_AUTO ||
trigger_source == UCA_CAMERA_TRIGGER_SOURCE_EXTERNAL);