Skip to content

Commit f4804e8

Browse files
committed
make farewellScreen more robust
can run even when no cfg.mri field is present
1 parent b448073 commit f4804e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/screen/farewellScreen.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ function farewellScreen(cfg)
55
Screen('FillRect', cfg.screen.win, cfg.color.background, cfg.screen.winRect);
66
DrawFormattedText(cfg.screen.win, 'Thank you!', 'center', 'center', cfg.text.color);
77
Screen('Flip', cfg.screen.win);
8-
WaitSecs(cfg.mri.repetitionTime * 2);
8+
if isfield(cfg, 'mri')
9+
WaitSecs(cfg.mri.repetitionTime * 2);
10+
end
911

1012
end

0 commit comments

Comments
 (0)