* casio-qv.c (camera_init): Patch by Michael Haardt
	  <michael@moria.de>.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7143 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2004-03-23 19:50:48 +00:00
parent e9f7539503
commit c3eef5e387
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2004-03-23 Lutz Mueller <lutz@users.sourceforge.net>
* casio-qv.c (camera_init): Patch by Michael Haardt
<michael@moria.de>.
2003-12-03 Hubert Figuiere <hfiguiere@teaser.fr>
* casio-qv.c (camera_init): hardcode speed to 9600 bauds

View File

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