diff --git a/ADOrcaApp/src/orca.cpp b/ADOrcaApp/src/orca.cpp index 88042bf822226d26b1b8c930f1883fd364f35e62..d6c77812977368508205bc9960e7a6abcb4e48df 100644 --- a/ADOrcaApp/src/orca.cpp +++ b/ADOrcaApp/src/orca.cpp @@ -2218,54 +2218,6 @@ asynStatus Orca::setFeature(int featureIndex, double value) { return asynSuccess; } -//============================================================================ -int Orca::getProperties() { - printf("\n[DEBUG] Function:getProperties\n"); - - int32 iProp = 0; // property IDs - - double value = 50; - dcamprop_getvalue(m_hdcam, DCAM_IDPROP_SENSORTEMPERATURE, &value); - printf("The SENSOR TEMPERATURE = %f\n", value); - - DCAMERR err; - err = dcamprop_getnextid(m_hdcam, &iProp, DCAMPROP_OPTION_SUPPORT); - if (failed(err)) { - printError(m_hdcam, err, "dcamprop_getnextid()", - "IDPROP:0x%08x, OPTION:SUPPORT", 0); - return err; - } - - do { - // get property name - char text[64]; - err = dcamprop_getname(m_hdcam, iProp, text, sizeof(text)); - if (failed(err)) { - printError(m_hdcam, err, "dcamprop_getname()", "IDPROP:0x%08x", iProp); - return err; - } - - printf("0x%08x: %s\n", iProp, text); - - // get property attribute - DCAMPROP_ATTR basepropattr; - memset(&basepropattr, 0, sizeof(basepropattr)); - basepropattr.cbSize = sizeof(basepropattr); - basepropattr.iProp = iProp; - - err = dcamprop_getattr(m_hdcam, &basepropattr); - - // get next property id - err = dcamprop_getnextid(m_hdcam, &iProp, DCAMPROP_OPTION_SUPPORT); - if (failed(err)) { - return err; - } - - } while (iProp != 0); - - return 0; -} - int Orca::roundToNearestMultipleOfFour(int value) { int remainder = value % 4; if (remainder == 0) diff --git a/ADOrcaApp/src/orca.h b/ADOrcaApp/src/orca.h index 7bdf685daa34f3e4da27131cc6204816f3cd40a2..88021361446a3b899dd6f5e6096838eeabc0a1a2 100644 --- a/ADOrcaApp/src/orca.h +++ b/ADOrcaApp/src/orca.h @@ -366,7 +366,6 @@ class epicsShareClass Orca : public ADDriver { int dcamdev_string(DCAMERR& err, HDCAM hdcam, int32 idStr, char* text, int32 textbytes); - int getProperties(); int roundToNearestMultipleOfFour(int value); asynStatus setFeature(int featureIndex, double value);