* pdc320.c: corectly detect both : and non : names.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7762 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2005-04-09 18:58:56 +00:00
parent a255ccdd09
commit ba142e9fe7
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2005-04-09 Marcus Meissner <marcus@jet.franken.de>
* pdc320.c: Check for both : and non : names
in model detection.
2004-01-08 Marcus Meissner <marcus@jet.franken.de>
From Mark Slemko <slemkom@users.sourceforge.net>

View File

@@ -525,9 +525,13 @@ camera_init (Camera *camera, GPContext *context)
/* What model are we talking to? */
gp_camera_get_abilities (camera, &abilities);
if (!strcmp (abilities.model, "Polaroid:Fun! 320"))
if ( !strcmp (abilities.model, "Polaroid:Fun! 320") ||
!strcmp (abilities.model, "Polaroid Fun! 320")
)
camera->pl->model = PDC320;
else if (!strcmp (abilities.model, "Polaroid:640SE"))
else if (!strcmp (abilities.model, "Polaroid:640SE") ||
!strcmp (abilities.model, "Polaroid 640SE")
)
camera->pl->model = PDC640SE;
else {
free (camera->pl);