summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-04-09 10:35:24 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-04-09 10:35:24 +0200
commit67f037be26c0dcbd91b93c26f2f9f52be3ce4e6b (patch)
tree8d88ada2852ad7789208e5659ea0399ab7c1b1f1 /plugins
parenta793426206c643e795dbe08a3432f8202189d1ea (diff)
downloaduca-67f037be26c0dcbd91b93c26f2f9f52be3ce4e6b.tar.gz
uca-67f037be26c0dcbd91b93c26f2f9f52be3ce4e6b.tar.bz2
uca-67f037be26c0dcbd91b93c26f2f9f52be3ce4e6b.tar.xz
uca-67f037be26c0dcbd91b93c26f2f9f52be3ce4e6b.zip
ufo: set bit 14 if AUTO or EXTERNAL trigger source
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 acfbc39..b167f87 100644
--- a/plugins/ufo/uca-ufo-camera.c
+++ b/plugins/ufo/uca-ufo-camera.c
@@ -320,7 +320,8 @@ uca_ufo_camera_start_recording(UcaCamera *camera, GError **error)
set_control_bit (priv, 15, trigger_type == UCA_CAMERA_TRIGGER_TYPE_EDGE);
set_control_bit (priv, 11, trigger_source == UCA_CAMERA_TRIGGER_SOURCE_AUTO);
- set_control_bit (priv, 14, TRUE);
+ set_control_bit (priv, 14, trigger_source == UCA_CAMERA_TRIGGER_SOURCE_AUTO ||
+ trigger_source == UCA_CAMERA_TRIGGER_SOURCE_EXTERNAL);
priv->timeout = ((pcilib_timeout_t) (exposure_time * 1000 + 100.0) * 1000);