Skip to content

Commit 3620625

Browse files
committed
Storing frames for 2ms. close #51 .
1 parent f533d3e commit 3620625

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,9 @@ void do_trial( size_t trial_num, bool isprobe = false )
539539
while( (millis( ) - stamp_) <= duration )
540540
{
541541
write_data_line( );
542-
// Switch camera OFF after 500 ms into POST.
543-
if( (millis() - stamp_) >= 500 )
542+
// Switch camera OFF after 2500 ms into POST.
543+
if( (millis() - stamp_) >= 2500 )
544544
digitalWrite( CAMERA_TTL_PIN, LOW );
545-
delay(50);
546545
}
547546

548547
digitalWrite( IMAGING_TRIGGER_PIN, LOW ); /* Shut down the imaging. */

0 commit comments

Comments
 (0)