Skip to content

Commit 26abf4d

Browse files
committed
remove unnecessary min() call as the enclosing max() is more limiting
fix issue #157
1 parent f95e420 commit 26abf4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Lib.Academy.OutputTransform.ctl

+1-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ float getFocusGain(float J,
870870
if (J > thr)
871871
{
872872
// Approximate inverse required above threshold
873-
float gain = (limitJmax - thr) / max(0.0001, (limitJmax - min(limitJmax, J)));
873+
float gain = (limitJmax - thr) / max(0.0001, limitJmax - J);
874874
return pow(log10(gain), 1. / focusAdjustGain) + 1.;
875875
}
876876
else

0 commit comments

Comments
 (0)