Read about our upcoming Code of Conduct on this issue

Commit 5c02d11c authored by a1ex's avatar a1ex
Browse files

600D: limited support for follow focus and rack focus; only 3 speeds available.

--HG--
branch : unified
parent 04dcfa76c464
......@@ -246,10 +246,10 @@ static int handle_buttons(struct event * event)
lens_focus_start(-1 * get_follow_focus_dir_h());
return 0;
case BGMT_PRESS_UP:
lens_focus_start(5 * get_follow_focus_dir_v());
lens_focus_start(2 * get_follow_focus_dir_v());
return 0;
case BGMT_PRESS_DOWN:
lens_focus_start(-5 * get_follow_focus_dir_v());
lens_focus_start(-2 * get_follow_focus_dir_v());
return 0;
case BGMT_UNPRESS_LEFT:
case BGMT_UNPRESS_RIGHT:
......
......@@ -16,18 +16,14 @@ lens_focus(
if (is_manual_focus()) return;
while (lens_info.job_state) msleep(100);
lens_focus_wait();
lv_focus_done = 0;
step = COERCE(step, -3, 3);
int focus_cmd = step;
if (step < 0) focus_cmd = 0x8000 - step;
struct prop_focus focus = {
.active = 1,
.mode = 7,
.step_hi = (step >> 8) & 0xFF,
.step_lo = (step >> 0) & 0xFF,
.unk = 0,
};
prop_request_change(PROP_LV_LENS_DRIVE_REMOTE, &focus_cmd, 4);
msleep(100);
prop_request_change( PROP_LV_FOCUS, &focus, sizeof(focus) );
if (get_zoom_overlay_mode()==2) zoom_overlay_set_countdown(300);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment