Skip to content

Commit f16bcff

Browse files
committed
fixes target being displayed too long
1 parent b8b183b commit f16bcff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setParameters.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
cfg.fixation.yDisplacement = 0;
133133

134134
cfg.target.maxNbPerBlock = 1;
135-
cfg.target.duration = 0.025; % In secs
135+
cfg.target.duration = 0.1; % In secs
136136

137137
cfg.extraColumns = { ...
138138
'direction', ...

subfun/doDotMo.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151

5252
apertureTexture('draw', cfg, thisEvent);
5353

54-
if thisEvent.target(1) && GetSecs < (onset + cfg.target.duration)
54+
thisFixation.fixation.color = cfg.fixation.color;
55+
if thisEvent.target(1) && vbl < (onset + cfg.target.duration)
5556
thisFixation.fixation.color = cfg.fixation.colorTarget;
5657
end
5758
drawFixation(thisFixation);

0 commit comments

Comments
 (0)