Magic Lantern Forum

Using Magic Lantern => Hardware and Accessories => Topic started by: franklima260 on June 20, 2014, 10:05:39 PM

Title: Enable/Disable Autofocus in software over USB
Post by: franklima260 on June 20, 2014, 10:05:39 PM
Hey guys/gals,
I am trying to figure out a way to enable and disable autofocus in the cameras firmware without having to switch the lenses autofocus on and off. I would like to do the enable/disable over USB using gPhoto2/piggyphoto or somthing similar.

Is this a feature that is supported by Magic Lantern? (I have searched the forum but I have not found what I am looking for.)

Thanks, Frank
Title: Re: Enable/Disable Autofocus in software over USB
Post by: dmilligan on June 20, 2014, 10:11:26 PM

lens_setup_af(AF_DISABLE);
// be careful: don't return without restoring the setting back!