From 923b9e9480b402f2352c06e06847b50a94673201 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 26 Jun 2019 13:15:29 +0200 Subject: added "focal", which might be aperture? --- camlibs/lumix/lumix.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/camlibs/lumix/lumix.c b/camlibs/lumix/lumix.c index 8279010f2..3fbfe8424 100644 --- a/camlibs/lumix/lumix.c +++ b/camlibs/lumix/lumix.c @@ -423,7 +423,7 @@ static void switchToRecMode(Camera *camera) { static void Set_ISO(Camera *camera,const char * ISOValue) { char buf[200]; - sprintf(buf, "?mode==setsetting&type=iso&value=%s",ISOValue); + sprintf(buf, "?mode=setsetting&type=iso&value=%s",ISOValue); loadCmd(camera,buf); } @@ -437,6 +437,11 @@ Get_ShutterSpeed(Camera *camera) { return loadCmd(camera,"cam.cgi?mode=getsetting&type=shtrspeed"); } +static char* +Get_Focal(Camera *camera) { + return loadCmd(camera,"cam.cgi?mode=getsetting&type=focal"); +} + static char* Get_AFMode(Camera *camera) { return loadCmd(camera,"cam.cgi?mode=getsetting&type=afmode"); @@ -894,6 +899,11 @@ camera_config_get (Camera *camera, CameraWidget **window, GPContext *context) gp_widget_set_value (widget, Get_ShutterSpeed(camera)); gp_widget_append (section, widget); + gp_widget_new (GP_WIDGET_TEXT, _("Focal Length"), &widget); + gp_widget_set_name (widget, "focal"); + gp_widget_set_value (widget, Get_Focal(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