File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ void closeUp(int e)
568568
569569 if (e == EXIT_RESTARTING)
570570 (void ) displayNotificationImage (" --expires 15 Restarting &" );
571- else if (e == EXIT_OK)
571+ else if (e == EXIT_OK || e == EXIT_STOP )
572572 (void ) displayNotificationImage (" --expires 2 NotRunning &" );
573573 else
574574 (void ) displayNotificationImage (" --expires 0 Error &" );
@@ -578,7 +578,11 @@ void closeUp(int e)
578578 sleep (3 );
579579
580580 printf (" ***** %s Allsky" , a);
581- if (e != EXIT_OK) printf (" (code %d)" , e);
581+ if (e == EXIT_STOP) {
582+ printf (" after %d image%s." , CG.maxImages , CG.maxImages == 1 ? " " : " s" );
583+ } else if (e != EXIT_OK) {
584+ printf (" (code %d)" , e);
585+ }
582586 printf (" *****\n " );
583587
584588 // ZWO seems to hang on ASICloseCamera() if taking a picture when the signal is sent,
You can’t perform that action at this time.
0 commit comments