summaryrefslogtreecommitdiffstats
path: root/src/cameras
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-16 15:10:11 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-16 15:10:11 +0200
commite8511cd473b2eff313bffb06e18be42c2cf5ef8a (patch)
treea560e34d354bef05ddaf810ee4e153b277f1e447 /src/cameras
parentdaeca509cc60e977855187f81aea9ca2803527c1 (diff)
downloadlibuca-e8511cd473b2eff313bffb06e18be42c2cf5ef8a.tar.gz
libuca-e8511cd473b2eff313bffb06e18be42c2cf5ef8a.tar.bz2
libuca-e8511cd473b2eff313bffb06e18be42c2cf5ef8a.tar.xz
libuca-e8511cd473b2eff313bffb06e18be42c2cf5ef8a.zip
Fix bitmode to bit depth translation
Diffstat (limited to 'src/cameras')
-rw-r--r--src/cameras/uca-ufo-camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cameras/uca-ufo-camera.c b/src/cameras/uca-ufo-camera.c
index 1f1eca8..e4a0d4a 100644
--- a/src/cameras/uca-ufo-camera.c
+++ b/src/cameras/uca-ufo-camera.c
@@ -193,7 +193,7 @@ UcaUfoCamera *uca_ufo_camera_new(GError **error)
UcaUfoCameraPrivate *priv = UCA_UFO_CAMERA_GET_PRIVATE(camera);
bit_mode = read_register_value (handle, "bit_mode");
- priv->n_bits = bit_mode == 2 ? 12 : 10;
+ priv->n_bits = bit_mode == 0 ? 12 : 10;
priv->handle = handle;
return camera;