We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 823732c commit d783151Copy full SHA for d783151
1 file changed
src/eyeTracker.m
@@ -228,19 +228,22 @@
228
% Exit program if this fails.
229
elInit = Eyelink('Initialize');
230
if elInit ~= 0
231
+ Eyelink('shutdown');
232
error([newline 'Eyelink is not initialized, aborted.']);
233
end
234
235
% Make sure EL is still connected: returns 1 if connected, -1 if dummy-connected,
236
% 2 if broadcast-connected and 0 if not connected. Exit program if this fails.
237
elConnection = Eyelink('IsConnected');
238
if elConnection ~= 1
239
240
error([newline 'Eyelink is not connected, aborted.']);
241
242
243
% Initialize Eyelink system and connection: returns 1 when succesful, 0
244
% otherwise
245
if ~EyelinkInit(0, 1)
246
247
fprintf('Eyelink Init aborted.\n');
248
return
249
0 commit comments