summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-27 15:28:39 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-27 15:28:39 +0100
commit2b8cfdd28ccee0fa7fbd1a1a2fd5f59f641a3285 (patch)
tree8c8375b7e62f12676c2c690a17185cb2f2c74df2 /plugins
parent648f44b3c7cf7e752c913cedde536ecad6cf2091 (diff)
downloadlibuca-2b8cfdd28ccee0fa7fbd1a1a2fd5f59f641a3285.tar.gz
libuca-2b8cfdd28ccee0fa7fbd1a1a2fd5f59f641a3285.tar.bz2
libuca-2b8cfdd28ccee0fa7fbd1a1a2fd5f59f641a3285.tar.xz
libuca-2b8cfdd28ccee0fa7fbd1a1a2fd5f59f641a3285.zip
ufo: check trigger error
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ufo/uca-ufo-camera.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c
index da47a96..936485d 100644
--- a/plugins/ufo/uca-ufo-camera.c
+++ b/plugins/ufo/uca-ufo-camera.c
@@ -429,12 +429,14 @@ static void
uca_ufo_camera_trigger (UcaCamera *camera, GError **error)
{
UcaUfoCameraPrivate *priv;
+ int err;
g_return_if_fail (UCA_IS_UFO_CAMERA(camera));
priv = UCA_UFO_CAMERA_GET_PRIVATE(camera);
/* XXX: What is PCILIB_EVENT0? */
- pcilib_trigger (priv->handle, PCILIB_EVENT0, 0, NULL);
+ err = pcilib_trigger (priv->handle, PCILIB_EVENT0, 0, NULL);
+ PCILIB_SET_ERROR (err, UCA_UFO_CAMERA_ERROR_TRIGGER);
}
static void