Hi all,
here is a patch that fixes several problems with the ASI driver. A good example how dangerous is to use uninitialized data.
commit ba8eaa6e2fe90d4caa0e539680ab3a1da5f9146a
Author: Rumen G.Bogdanovski <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Date: Fri Jul 22 03:36:10 2016 +0300
ASI: fix uninitialized CoolerSP struct - leading to strange behaviour including failure to capture images
diff --git a/3rdparty/indi-asi/asi_ccd.cpp b/3rdparty/indi-asi/asi_ccd.cpp
index c4b10d5..19b672f 100644
--- a/3rdparty/indi-asi/asi_ccd.cpp
+++ b/3rdparty/indi-asi/asi_ccd.cpp
@@ -223,6 +223,10 @@ bool ASICCD::initProperties()
{
INDI::CCD::initProperties();
+ IUFillSwitch(&CoolerS[0], "COOLER_ON", "ON", ISS_OFF);
+ IUFillSwitch(&CoolerS[1], "COOLER_OFF", "OFF", ISS_ON);
+ IUFillSwitchVector(&CoolerSP, CoolerS, 2, getDeviceName(), "CCD_COOLER", "Cooler", MAIN_CONTROL_TAB, IP_WO, ISR_1OFMANY, 0, IPS_IDLE);
+
IUFillNumber(&CoolerN[0], "CCD_COOLER_VALUE", "Cooling Power (%)", "%+06.2f", 0., 1., .2, 0.0);
IUFillNumberVector(&CoolerNP, CoolerN, 1, getDeviceName(), "CCD_COOLER_POWER", "Cooling Power", MAIN_CONTROL_TAB, IP_RO, 60, IPS_IDLE);