// ASSERT!! FocusLensController.c Line 829 // Task name: PhySw
photo_param_put_off.subj_dist=shooting_get_subject_distance();// @ Ix125 & Ix240 switch to
// ASSERT!! FocusLensController.c Line 829 // Task name: CaptSeqTask
void shooting_set_focus(int v, short is_now)
{
int s=v;
if (!camera_info.state.mode_play)
{
if (is_now && focus_busy) {
short t=0;
do {msleep(10); t=t+1;} while (focus_busy && (t<404));
if (t<404) {
photo_param_put_off.subj_dist=shooting_get_subject_distance();
return ;}
} // don't focus twice
if (is_now && shooting_can_focus())
{
if (conf.dof_subj_dist_as_near_limit)
{
s=shooting_get_near_limit_f(v,shooting_get_min_real_aperture(),get_focal_length(lens_get_zoom_point()));
}
if (!conf.dof_use_exif_subj_dist && (s != INFINITY_DIST))
s+=shooting_get_lens_to_focal_plane_width();
lens_set_focus_pos(s);
// ASSERT!! FocusLensController.c Line 829 // Task name: PhySw
photo_param_put_off.subj_dist=shooting_get_subject_distance();// @ Ix125 & Ix240 switch to
// ASSERT!! FocusLensController.c Line 829 // Task name: CaptSeqTask
}
else
photo_param_put_off.subj_dist=v;
}
}
Edit: The added lines can all: help, disturb, shift bugs/Romlogs or do nothing. Depends somhow on cam and anything else.
Sorry, I really don't understand any of this.
What problem is being addressed?
Is the problem reproducible?
If so, what are the specific steps to reproduce it?
What is the rational behind the proposed changes in the code?
How have the changes been tested?
If these specifics were spelled out in some other thread, feel free to link to it.
I will not make changes on the basis that they maybe help sometimes in some unspecified way. I'm not really interested in spending a lot of time trying to guess.