Update kstars/ekos/capture/capture.cpp
Fix for position of pre-capture script - original code was treating pre-capture like pre-job and executing only one time - 3 spots in code move the script trigger to the needed location as executed each time a capture is executed - this synchonizes the script with all activity inlcuding dither, align and filter changes on the MAIN camera - it also allows for use of any number of camera that INDI can support by using the indi_setprop command in script format - this has been tested for months now on version of KStars from 3.5.2 through 3.5.5 beta
sample script #!/bin/bash echo "2nd Camera is about to take a picture" #indi_getprop indi_setprop -h 127.0.0.1 "QHY CCD QHY294PROC-4e75.CCD_EXPOSURE.CCD_EXPOSURE_VALUE=300" echo "2nd Camera execution command sent" exit 0