2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/kodak/dc240/dc240.c (camera_init): Don't open/close the port.
This is done by libgphoto2.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2223 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-09-10 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
* camlibs/kodak/dc240/dc240.c (camera_init): Don't open/close the port.
|
||||
This is done by libgphoto2.
|
||||
|
||||
2001-09-10 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
* libgphoto2/camera.c
|
||||
|
||||
@@ -196,10 +196,6 @@ camera_init (Camera *camera)
|
||||
if (ret < 0)
|
||||
return (ret);
|
||||
|
||||
ret = gp_port_open (camera->port);
|
||||
if (ret < 0)
|
||||
return (ret);
|
||||
|
||||
ret = gp_port_timeout_set (camera->port, TIMEOUT);
|
||||
if (ret < 0)
|
||||
return (ret);
|
||||
@@ -212,24 +208,18 @@ camera_init (Camera *camera)
|
||||
GP_SYSTEM_SLEEP(1500);
|
||||
|
||||
ret = dc240_set_speed (camera, camera->port_info->speed);
|
||||
if (ret < 0) {
|
||||
gp_port_close (camera->port);
|
||||
if (ret < 0)
|
||||
return (ret);
|
||||
}
|
||||
}
|
||||
|
||||
/* Open the CF card */
|
||||
ret = dc240_open (camera);
|
||||
if (ret < 0) {
|
||||
gp_port_close (camera->port);
|
||||
if (ret < 0)
|
||||
return (ret);
|
||||
}
|
||||
|
||||
ret = dc240_packet_set_size (camera, HPBS+2);
|
||||
if (ret < 0) {
|
||||
gp_port_close (camera->port);
|
||||
if (ret < 0)
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
||||
return (GP_OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user