Skip to content

Commit

Permalink
better leica detection mode
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Sep 30, 2023
1 parent 1c4f113 commit 5f88308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions camlibs/ptp2/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fixup_cached_deviceinfo (Camera *camera, PTPDeviceInfo *di) {
}

/* LEICA */
if ( (di->VendorExtensionID == PTP_VENDOR_MICROSOFT) &&
if ( ((!di->VendorExtensionID) || (di->VendorExtensionID == PTP_VENDOR_MICROSOFT)) &&
(camera->port->type == GP_PORT_USB) &&
(a.usb_vendor == 0x1a98)
) {
Expand Down Expand Up @@ -2791,7 +2791,7 @@ static struct {
{"Leica:M9", 0x1a98, 0x0002, PTP_CAP},

/* https://github.com/gphoto/gphoto2/issues/601 */
{"Leica:Q3", 0x1a98, 0x2376, 0}, /* checking for PTP_CAP */
{"Leica:Q3", 0x1a98, 0x2376, PTP_CAP|PTP_CAP_PREVIEW},

/* Christopher Kao <[email protected]> */
{"Leica:SL (Typ 601)", 0x1a98, 0x2041, PTP_CAP|PTP_CAP_PREVIEW},
Expand Down

0 comments on commit 5f88308

Please sign in to comment.