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