Skip to content

Commit

Permalink
Merge pull request micro-manager#1906 from nicost/projector20240306
Browse files Browse the repository at this point in the history
Projector: Fixes bug not waiting for Galvo when projecting ROIs
  • Loading branch information
nicost authored Mar 7, 2024
2 parents 7927cc9 + 384af78 commit 8f8473c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ public void exposeRois(final ProjectionDevice dev, final String targetingChannel
final String originalConfig = prepareChannel(targetingChannel);
boolean originalShutterState = prepareShutter(targetingShutter);
dev.runPolygons();
if (!isGalvo) {
if (isGalvo) {
dev.waitForDevice();
} else { // SLM devices do not wait after displaying the image.
try {
Thread.sleep(dev.getExposure() / 1000);
} catch (InterruptedException ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ public void runPolygons() {
app_.logs().showError(ex);
}
});

}

@Override
Expand Down

0 comments on commit 8f8473c

Please sign in to comment.