File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3434 AssertOpenGL ;
3535
3636 cfg = setDefaultsPTB(cfg );
37+
38+ Screen(' Preference' , ' SkipSyncTests' , cfg .skipSyncTests );
3739
3840 initKeyboard ;
3941 initDebug(cfg );
120122function initDebug(cfg )
121123
122124 % init PTB with different options in concordance to the debug Parameters
123- Screen( ' Preference ' , ' SkipSyncTests ' , 0 );
125+
124126 if cfg .debug .do
125-
126- Screen(' Preference' , ' SkipSyncTests' , 2 );
127+
128+ cfg.skipSyncTests = 2 ;
129+ Screen(' Preference' , ' SkipSyncTests' , cfg .skipSyncTests );
127130 Screen(' Preference' , ' Verbosity' , 0 );
128131 Screen(' Preference' , ' SuppressAllWarnings' , 1 );
129132
Original file line number Diff line number Diff line change 99
1010 %% list the default values
1111 fieldsToSet.testingDevice = ' pc' ;
12+
13+ fieldsToSet.skipSyncTests = 0 ;
1214
1315 % keyboard defaults
1416 fieldsToSet.keyboard.keyboard = [];
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ function test_setDefaultsPtbAudio()
6969 expectedCFG.screen.monitorWidth = 42 ;
7070 expectedCFG.screen.monitorDistance = 134 ;
7171 expectedCFG.screen.resolution = {[], [], []};
72+
73+ expectedCFG.skipSyncTests = 0 ;
7274
7375 % fixation cross or dot
7476 expectedCFG.fixation.type = ' cross' ;
You can’t perform that action at this time.
0 commit comments