I think this error was actually in the aperture code, not the autofocus sensor code