summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-01-29 19:15:12 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-01-29 19:15:12 +0100
commitef4a653b8933c73a4165f644526c70ed785fbb22 (patch)
treef01a2ec77e517e1891bce407db6829725946a870 /plugins
parent6ba05640e213b0be340d46efc56bec3090d2b7ed (diff)
downloaduca-ef4a653b8933c73a4165f644526c70ed785fbb22.tar.gz
uca-ef4a653b8933c73a4165f644526c70ed785fbb22.tar.bz2
uca-ef4a653b8933c73a4165f644526c70ed785fbb22.tar.xz
uca-ef4a653b8933c73a4165f644526c70ed785fbb22.zip
ufo: fix reading the frequency flag
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ufo/uca-ufo-camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c
index ffae985..0cc7cba 100644
--- a/plugins/ufo/uca-ufo-camera.c
+++ b/plugins/ufo/uca-ufo-camera.c
@@ -227,7 +227,7 @@ setup_pcilib (UcaUfoCameraPrivate *priv)
NULL, g_free);
N_PROPERTIES = update_properties (priv);
priv->height = read_register_value (priv->handle, "cmosis_number_lines") + 1;
- priv->frequency = read_register_value (priv->handle, "bit_mode");
+ priv->frequency = read_register_value (priv->handle, "bit_mode") >> 31;
adc_resolution = read_register_value (priv->handle, "adc_resolution");
switch (adc_resolution) {