Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

A7: FocusDriveListener not doing anything #25

@hoshyK2

Description

@hoshyK2

Hi,

As best as I can tell the FocusDriverListener event is not raising on my A7 (original model). Latest firmware: 3.20

I built from source (and tried the shipped local installer build) v1.5. But no matter what I try, I always get a m_curFocus == 0

The logging messages are not hit either so it seems that this whole code block never fires. Other log messages are written fine so logging is generally working.

m_camera.setFocusDriveListener(new CameraEx.FocusDriveListener()
{
@OverRide
public void onChanged(CameraEx.FocusPosition focusPosition, CameraEx cameraEx)
{
Logger.info("FocusDriveListener: currentPosition " + focusPosition.currentPosition);
m_handler.removeCallbacks(m_checkFocusRunnable);
m_focusScaleView.setMaxPosition(focusPosition.maxPosition);
m_focusScaleView.setCurPosition(focusPosition.currentPosition);
m_tvMsg.setText(focusPosition.currentPosition);
m_curFocus = focusPosition.currentPosition;
if (m_waitingForFocus)
{
if (m_curFocus == m_focusQueue.getFirst())
{
// Focused, take picture
Logger.info("Taking picture (FocusDriveListener)");
takePicture();
}
else
focus();
}
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions