Skip to content

Commit

Permalink
Ignore capture if capture in progress flag is set but display a warni…
Browse files Browse the repository at this point in the history
…ng to the log nonetheless
  • Loading branch information
knro committed Mar 28, 2018
1 parent 12b2fe2 commit a4dca10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kstars/ekos/focus/focus.cpp
Expand Up @@ -816,6 +816,12 @@ void Focus::stop(bool aborted)

void Focus::capture()
{
if (captureInProgress)
{
qCWarning(KSTARS_EKOS_FOCUS) << "Capture called while already in progress. Capture is ignored.";
return;
}

if (currentCCD == nullptr)
{
appendLogText(i18n("No CCD connected."));
Expand Down

0 comments on commit a4dca10

Please sign in to comment.