From ef4a653b8933c73a4165f644526c70ed785fbb22 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 29 Jan 2014 19:15:12 +0100 Subject: ufo: fix reading the frequency flag --- plugins/ufo/uca-ufo-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ufo') 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) { -- cgit v1.2.3