From e8511cd473b2eff313bffb06e18be42c2cf5ef8a Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 16 Jul 2012 15:10:11 +0200 Subject: Fix bitmode to bit depth translation --- src/cameras/uca-ufo-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cameras') 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; -- cgit v1.2.3