revert a disabling of EOS M functionality that mistakenly slipped in.

Only enable it for EOS M, but not for PowerShot SX
This commit is contained in:
Marcus Meissner
2019-12-08 12:37:51 +01:00
parent 708b0f3bbf
commit dcde7ccdfa

View File

@@ -455,7 +455,10 @@ camera_prepare_canon_eos_capture(Camera *camera, GPContext *context) {
C_PTP (ptp_check_eos_events (params));
params->eos_captureenabled = 1;
if (is_canon_eos_m (params) && 0) {
/* run this only on EOS M, not on PowerShot SX */
/* FIXME: needs more testing :/ */
if (is_canon_eos_m (params) && strstr(params->deviceinfo.Model,"EOS")) {
/* This code is needed on EOS m3 at least. might not be needed on others ... mess :/ */
PTPPropertyValue ct_val;
GP_LOG_D ("EOS M detected");