Skip to content

Commit 40d5950

Browse files
committed
mh fix
1 parent 2129bd0 commit 40d5950

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/eyeTracker.m

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
% Get EyeLink setup information.
6565
[el.v, el.vs] = Eyelink('GetTrackerVersion');
6666
fprintf('Running experiment on a ''%s'' tracker.\n', el.vs);
67-
67+
6868
% Save EL setup version in cfg
6969
cfg.eyeTracker.eyeLinkVersionString = el.vs;
7070

@@ -81,8 +81,8 @@
8181
Eyelink('Message', 'DISPLAY_COORDS %ld %ld %ld %ld', 0, 0, 0, 0);
8282

8383
% Set calibration type.
84-
Eyelink('Command', 'calibration_type = HV5');
85-
84+
Eyelink('Command', 'calibration_type = HV5');
85+
8686
if cfg.eyeTracker.defaultCalibration
8787

8888
% Set default calibration parameters.
@@ -122,8 +122,8 @@
122122
% Set EDF file contents (not clear what this lines are used for).
123123
el.vsn = regexp(el.vs, '\d', 'match'); % won't work on EL
124124

125-
fprintf('Waiting for calibration \n')
126-
125+
fprintf('Waiting for calibration \n');
126+
127127
% Enter Eyetracker camera setup mode, calibration and validation.
128128
EyelinkDoTrackerSetup(el);
129129

@@ -228,16 +228,16 @@
228228
% Exit program if this fails.
229229
elInit = Eyelink('Initialize');
230230
if elInit ~= 0
231-
error([newline 'Eyelink is not initialized, aborted.']);
231+
error([newline 'Eyelink is not initialized, aborted.']);
232232
end
233233

234234
% Make sure EL is still connected: returns 1 if connected, -1 if dummy-connected,
235235
% 2 if broadcast-connected and 0 if not connected. Exit program if this fails.
236236
elConnection = Eyelink('IsConnected');
237237
if elConnection ~= 1
238-
error([newline 'Eyelink is not connected, aborted.']);
238+
error([newline 'Eyelink is not connected, aborted.']);
239239
end
240-
240+
241241
% Initialize Eyelink system and connection: returns 1 when succesful, 0
242242
% otherwise
243243
if ~EyelinkInit(0, 1)
@@ -247,7 +247,6 @@
247247

248248
end
249249

250-
251250
%% subfunctions for iView
252251

253252
% function ivx = eyeTrackInit(cfg)

0 commit comments

Comments
 (0)