diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-01-29 19:15:12 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-01-29 19:15:12 +0100 |
commit | ef4a653b8933c73a4165f644526c70ed785fbb22 (patch) | |
tree | f01a2ec77e517e1891bce407db6829725946a870 /plugins/ufo | |
parent | 6ba05640e213b0be340d46efc56bec3090d2b7ed (diff) | |
download | libuca-ef4a653b8933c73a4165f644526c70ed785fbb22.tar.gz libuca-ef4a653b8933c73a4165f644526c70ed785fbb22.tar.bz2 libuca-ef4a653b8933c73a4165f644526c70ed785fbb22.tar.xz libuca-ef4a653b8933c73a4165f644526c70ed785fbb22.zip |
ufo: fix reading the frequency flag
Diffstat (limited to 'plugins/ufo')
-rw-r--r-- | plugins/ufo/uca-ufo-camera.c | 2 |
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) { |