Skip to content

Commit a870214

Browse files
committed
fix travis' checks
1 parent ca84070 commit a870214

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/eyeTracker.m

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
% targets
4444
el.backgroundcolour = [cfg.eyeTracker.backgroundColor, (cfg.screen.win)];
4545
el.msgfontcolour = cfg.eyeTracker.fontColor;
46-
el.calibrationtargetcolour = cfg.eyeTracker.calibrationTargetColor
47-
el.calibrationtargetsize = cfg.eyeTracker.calibrationTargetSize
48-
el.calibrationtargetwidth = cfg.eyeTracker.calibrationTargetWidth
49-
el.displayCalResults = cfg.eyeTracker.displayCalResults
46+
el.calibrationtargetcolour = cfg.eyeTracker.calibrationTargetColor;
47+
el.calibrationtargetsize = cfg.eyeTracker.calibrationTargetSize;
48+
el.calibrationtargetwidth = cfg.eyeTracker.calibrationTargetWidth;
49+
el.displayCalResults = cfg.eyeTracker.displayCalResults;
5050

5151
% Call this function for changes to the calibration structure to take
5252
% affect.
@@ -55,7 +55,7 @@
5555
% Initialize EL and make sure it worked: returns 0 if OK, -1 if error.
5656

5757
% Check that EL is initialzed and connected, otherwise abort experiment
58-
eyetrackerCheckConnection
58+
eyetrackerCheckConnection;
5959

6060
% Open the edf file to write the data.
6161
edfFile = 'demo.edf';
@@ -71,8 +71,8 @@
7171

7272
% Make sure that we get gaze data from the Eyelink.
7373
Eyelink('Command', 'link_sample_data = LEFT,RIGHT,GAZE,AREA');
74-
Eyelink('Command', 'link_event_data = GAZE,GAZERES,HREF,AREA,VELOCITY');
75-
Eyelink('Command', 'link_event_filter = LEFT,RIGHT,FIXATION,BLINK,SACCADE,BUTTON');
74+
Eyelink('command', 'link_event_data = GAZE,GAZERES,HREF,AREA,VELOCITY');
75+
Eyelink('command', 'link_event_filter = LEFT,RIGHT,FIXATION,BLINK,SACCADE,BUTTON');
7676

7777
%% Calibration
7878

@@ -223,19 +223,19 @@
223223

224224
function eyetrackerCheckConnection
225225

226-
% Initialize EL and make sure it worked: returns 0 if OK, -1 if error.
227-
% Exit program if this fails.
228-
elInit = Eyelink('Initialize');
229-
if ELinit ~= 0
230-
error('Eyelink is not initialized, aborted.\n');
231-
end
232-
233-
% Make sure EL is still connected: returns 1 if connected, -1 if dummy-connected,
234-
% 2 if broadcast-connected and 0 if not connected. Exit program if this fails.
235-
elConnection = Eyelink('IsConnected');
236-
if ELconnection ~= 1
237-
error('Eyelink is not connected, aborted.\n');
238-
end
226+
% Initialize EL and make sure it worked: returns 0 if OK, -1 if error.
227+
% Exit program if this fails.
228+
elInit = Eyelink('Initialize');
229+
if ELinit ~= 0
230+
error('Eyelink is not initialized, aborted.\n');
231+
end
232+
233+
% Make sure EL is still connected: returns 1 if connected, -1 if dummy-connected,
234+
% 2 if broadcast-connected and 0 if not connected. Exit program if this fails.
235+
elConnection = Eyelink('IsConnected');
236+
if ELconnection ~= 1
237+
error('Eyelink is not connected, aborted.\n');
238+
end
239239

240240
end
241241

0 commit comments

Comments
 (0)