From 1675e810b56009290faa11b6c2bbf516e719d094 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 26 Jun 2019 12:35:43 +0200 Subject: added shutterspeed config --- camlibs/lumix/lumix.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'camlibs/lumix/lumix.c') diff --git a/camlibs/lumix/lumix.c b/camlibs/lumix/lumix.c index 20e736451..8279010f2 100644 --- a/camlibs/lumix/lumix.c +++ b/camlibs/lumix/lumix.c @@ -432,6 +432,11 @@ Get_Clock(Camera *camera) { return loadCmd(camera,"cam.cgi?mode=getsetting&type=clock"); } +static char* +Get_ShutterSpeed(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getsetting&type=shtrspeed"); +} + static char* Get_AFMode(Camera *camera) { return loadCmd(camera,"cam.cgi?mode=getsetting&type=afmode"); @@ -884,6 +889,11 @@ camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) gp_widget_set_value (widget, Get_Clock(camera)); gp_widget_append (section, widget); + gp_widget_new (GP_WIDGET_TEXT, _("Shutterspeed"), &widget); + gp_widget_set_name (widget, "shutterspeed"); + gp_widget_set_value (widget, Get_ShutterSpeed(camera)); + gp_widget_append (section, widget); + gp_widget_new (GP_WIDGET_TEXT, _("Autofocus Mode"), &widget); gp_widget_set_name (widget, "afmode"); gp_widget_set_value (widget, Get_AFMode(camera)); -- cgit v1.2.1