summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-04-17 11:45:15 +0200
committerMarcus Meissner <marcus@jet.franken.de>2017-04-17 11:45:15 +0200
commit2bbe8d4d218417daccbd1c6b53bd9069c09202f0 (patch)
tree62d0057217d3e646b4aae7db611ee7f4398862a3
parent8af8531df2d1d5c7aa739654a05a3606dde41e5d (diff)
downloadlibgphoto2-test.tar.gz
check for EOS M to avoid confusing it with EOS 5D Mark xtest
-rw-r--r--camlibs/ptp2/ptp-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/ptp2/ptp-private.h b/camlibs/ptp2/ptp-private.h
index 91e086e1c..2a90fd9c9 100644
--- a/camlibs/ptp2/ptp-private.h
+++ b/camlibs/ptp2/ptp-private.h
@@ -113,7 +113,7 @@ static inline int
is_canon_eos_m(PTPParams *params) {
if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_CANON) return 0;
if (!ptp_operation_issupported(params, PTP_OC_CANON_EOS_SetRemoteMode)) return 0;
- return strchr(params->deviceinfo.Model, 'M') != NULL;
+ return strstr(params->deviceinfo.Model, "EOS M") != NULL;
}