default to sdram capture

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14719 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2014-01-19 17:22:51 +00:00
parent 9583c27ab9
commit 5351bcce2a

View File

@@ -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);