don't base max_time on number of trials (fixes playback mode)

This commit is contained in:
Connor Olding 2018-06-16 00:44:34 +02:00
parent b0058db80e
commit 2fe009b5fe

View file

@ -423,7 +423,7 @@ local function do_reset()
end
end
max_time = 6 * sqrt(480 / #trial_params * (epoch_i - 1)) + 60
max_time = 6 * sqrt(10 * (epoch_i - 1)) + 60
max_time = clamp(max_time, cfg.min_time, cfg.max_time)
max_time = ceil(max_time)