From c3eef5e387d5ceca2bf0032931713e48b09fb3bc Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Tue, 23 Mar 2004 19:50:48 +0000 Subject: [PATCH] 2004-03-23 Lutz Mueller * casio-qv.c (camera_init): Patch by Michael Haardt . git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7143 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/casio/ChangeLog | 5 +++++ camlibs/casio/casio-qv.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/camlibs/casio/ChangeLog b/camlibs/casio/ChangeLog index 00add16ea..488593d95 100644 --- a/camlibs/casio/ChangeLog +++ b/camlibs/casio/ChangeLog @@ -1,3 +1,8 @@ +2004-03-23 Lutz Mueller + + * casio-qv.c (camera_init): Patch by Michael Haardt + . + 2003-12-03 Hubert Figuiere * casio-qv.c (camera_init): hardcode speed to 9600 bauds diff --git a/camlibs/casio/casio-qv.c b/camlibs/casio/casio-qv.c index e8fabfa0f..b0b6943c6 100644 --- a/camlibs/casio/casio-qv.c +++ b/camlibs/casio/casio-qv.c @@ -214,7 +214,6 @@ camera_capture (Camera *camera, CameraCaptureType type, CameraFilePath *path, int camera_init (Camera *camera, GPContext *context) { - int result = GP_OK, i; gp_port_settings settings; /* First, set up all the function pointers */ @@ -233,7 +232,10 @@ camera_init (Camera *camera, GPContext *context) /* speed is hardcoded to 9600 as per the protocol */ settings.serial.speed = 9600; CHECK_RESULT (gp_port_set_settings (camera->port, settings)); - result = QVping (camera); + gp_port_set_pin (camera->port, GP_PIN_RTS, GP_LEVEL_HIGH); + gp_port_set_pin (camera->port, GP_PIN_DTR, GP_LEVEL_LOW); + gp_port_set_pin (camera->port, GP_PIN_CTS, GP_LEVEL_LOW); + CHECK_RESULT (QVping (camera)); - return (result); + return GP_OK; }