summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-08-03 08:09:51 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-08-03 08:09:51 +0200
commit4cb4c615e9f6ebd880a55a3c694e2920834f5536 (patch)
tree4e6d4249cf612559962d636e812c1f5569bda6c7
parent56151e61b4c42526c91fe9a3170af1a968626b3c (diff)
downloaduca-ufo-4cb4c615e9f6ebd880a55a3c694e2920834f5536.tar.gz
uca-ufo-4cb4c615e9f6ebd880a55a3c694e2920834f5536.tar.bz2
uca-ufo-4cb4c615e9f6ebd880a55a3c694e2920834f5536.tar.xz
uca-ufo-4cb4c615e9f6ebd880a55a3c694e2920834f5536.zip
Read one less line to avoid segfaults
-rw-r--r--uca-ufo-camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c
index 7f9690f..a9c2502 100644
--- a/uca-ufo-camera.c
+++ b/uca-ufo-camera.c
@@ -235,7 +235,7 @@ setup_pcilib (UcaUfoCameraPrivate *priv)
priv->property_table = g_hash_table_new_full (g_direct_hash, g_direct_equal,
NULL, g_free);
N_PROPERTIES = update_properties (priv);
- priv->height = read_register_value (priv->handle, "cmosis_number_lines_single") + 1;
+ priv->height = read_register_value (priv->handle, "cmosis_number_lines_single");
priv->frequency = read_register_value (priv->handle, "control") >> 31;
adc_resolution = read_register_value (priv->handle, "adc_resolution");