From 5351bcce2af8a0fd0f815ddc1ca1a9dcd214bef3 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 19 Jan 2014 17:22:51 +0000 Subject: [PATCH] default to sdram capture git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14719 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp2/library.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 396d9f9b8..7bd37e2b9 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -3236,8 +3236,9 @@ camera_trigger_capture (Camera *camera, GPContext *context) SET_CONTEXT_P(params, context); - strcpy (buf, "card"); - gp_setting_get("ptp2","capturetarget",buf); + /* If there is no capturetarget set yet, the default is "sdram" */ + if (GP_OK != gp_setting_get("ptp2","capturetarget",buf)) + strcpy (buf, "sdram"); gp_log (GP_LOG_DEBUG, "ptp2/trigger_capture", "Triggering capture to %s", buf);