From 8c75b713ed6b1551af89a6ec31062b00fa8218f1 Mon Sep 17 00:00:00 2001 From: Mihael Koep Date: Mon, 16 Mar 2015 15:25:07 +0100 Subject: Only allow symmetricall binnings Other modes are technically possible but unsupported by the vendor. Since we experienced problems using asymmetrical binnings the plugin enforces symmetrical binnings. --- plugins/dexela/uca-dexela-camera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/dexela/uca-dexela-camera.c b/plugins/dexela/uca-dexela-camera.c index b5ecb5c..378426a 100644 --- a/plugins/dexela/uca-dexela-camera.c +++ b/plugins/dexela/uca-dexela-camera.c @@ -330,7 +330,7 @@ static void uca_dexela_camera_set_property(GObject *object, guint property_id, c g_warning("Tried to set illegal horizontal binning: %d", horizontalBinning); return; } - dexela_set_binning_mode(horizontalBinning, dexela_get_binning_mode_vertical()); + dexela_set_binning_mode(horizontalBinning, horizontalBinning); break; } case PROP_SENSOR_VERTICAL_BINNING: @@ -340,7 +340,7 @@ static void uca_dexela_camera_set_property(GObject *object, guint property_id, c g_warning("Tried to set illegal vertical binning: %d", verticalBinning); return; } - dexela_set_binning_mode(dexela_get_binning_mode_horizontal(), verticalBinning); + dexela_set_binning_mode(verticalBinning, verticalBinning); break; } case PROP_GAIN_MODE: -- cgit v1.2.3