Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unbreak ROI selection #474

Merged
merged 2 commits into from
Sep 14, 2021
Merged

unbreak ROI selection #474

merged 2 commits into from
Sep 14, 2021

Conversation

ckuethe
Copy link
Collaborator

@ckuethe ckuethe commented Sep 12, 2021

New exposure mode did not correctly set the capture ROI if the image size was manually specified. It was calling SetROI with a 0x0 window which would cause subsequent captures to fail.

At least partially fixes #471

cc @EricClaeys

New exposure mode did not correctly set the capture ROI if the image size
was manually specified. It was calling SetROI with a 0x0 window which would
cause subsequent captures to fail.
@EricClaeys
Copy link
Collaborator

Good catch.
I suggest where it checks for an error from ASISetROIFormat, that it "closeUp(1)" if an error is found. There's probably no sense in continuing. It could also "closeUp(101)" which would cause AllSky to stop. Any exit codes >= cause it to stop and not have the service restart it (which would likely result in another error, then a restart, then an error, etc.

Not exiting with a high error code since it might be a transitory error,
or something the user can fix quickly based on the log message.
@EricClaeys
Copy link
Collaborator

Thomas, this looks good to me.
Chris, thanks for adding "closeUp(1);"

@thomasjacquin thomasjacquin merged commit ca6b4aa into AllskyTeam:master Sep 14, 2021
@ckuethe ckuethe deleted the fix_new_exposure branch September 14, 2021 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New capture mode completely broken with ASI120MM
3 participants