diff options
Diffstat (limited to 'src/cameras')
-rw-r--r-- | src/cameras/uca-ufo-camera.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cameras/uca-ufo-camera.c b/src/cameras/uca-ufo-camera.c index 6c8872e..105d4bf 100644 --- a/src/cameras/uca-ufo-camera.c +++ b/src/cameras/uca-ufo-camera.c @@ -316,8 +316,14 @@ uca_ufo_camera_get_property(GObject *object, guint property_id, GValue *value, G g_value_set_uint(value, SENSOR_HEIGHT); break; case PROP_SENSOR_BITDEPTH: - g_value_set_uint(value, read_register_value (priv, "bit_mode")); - break; + switch (read_register_value (priv, "bit_mode")) { + case 1: + g_value_set_uint (value, 10); + break; + case 2: + g_value_set_uint (value, 12); + break; + } case PROP_SENSOR_HORIZONTAL_BINNING: g_value_set_uint(value, 1); break; |