Skip to content

Commit 9020166

Browse files
committed
change by miles?
1 parent aa55f76 commit 9020166

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

+eui/ExpPanel.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function expStarted(obj, rig, evt)
206206
end
207207
end
208208

209-
function expStopped(obj, rig, evt)
209+
function expStopped(obj, rig, ~)
210210
% EXPSTOPPED Callback for the ExpStopped event.
211211
% expStopped(obj, rig, event) Updates the ExpRunning flag, the
212212
% panel title and status label to show that the experiment has
@@ -222,9 +222,8 @@ function expStopped(obj, rig, evt)
222222
obj.Root.TitleColor = [1 0.3 0.22]; % red title area
223223
%post water to Alyx
224224
ai = rig.AlyxInstance;
225-
aborted = evt.Data; % aborted experiment flag
226225
subject = obj.SubjectRef;
227-
if ~isempty(ai)&&~strcmp(subject,'default')&&~aborted
226+
if ~isempty(ai)&&~strcmp(subject,'default')
228227
switch class(obj)
229228
case 'eui.ChoiceExpPanel'
230229
if ~isfield(obj.Block.trial,'feedbackType'); return; end % No completed trials

0 commit comments

Comments
 (0)