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