diff --git a/andorApp/src/andorCCD.cpp b/andorApp/src/andorCCD.cpp index 7efb253..495f9a9 100755 --- a/andorApp/src/andorCCD.cpp +++ b/andorApp/src/andorCCD.cpp @@ -1479,7 +1479,7 @@ void AndorCCD::dataTask(void) epicsTimeStamp startTime; NDArray *pArray; int autoSave; - int readOutMode; + int readOutMode; static const char *functionName = "dataTask"; printf("%s:%s: Data thread started...\n", driverName, functionName); @@ -1490,7 +1490,7 @@ void AndorCCD::dataTask(void) errorString = NULL; - //Wait for event from main thread to signal that data acquisition has started. + // Wait for event from main thread to signal that data acquisition has started. this->unlock(); status = epicsEventWait(dataEvent); if (mExiting) @@ -1500,7 +1500,7 @@ void AndorCCD::dataTask(void) driverName, functionName); this->lock(); - //Sanity check that main thread thinks we are acquiring data + // Sanity check that main thread thinks we are acquiring data if (mAcquiringData) { try { status = setupAcquisition(); @@ -1521,7 +1521,7 @@ void AndorCCD::dataTask(void) driverName, functionName, e.c_str()); continue; } - //Read some parameters + // Read some parameters getIntegerParam(NDDataType, &itemp); dataType = (NDDataType_t)itemp; getIntegerParam(NDAutoSave, &autoSave); getIntegerParam(NDArrayCallbacks, &arrayCallbacks); @@ -1579,8 +1579,8 @@ void AndorCCD::dataTask(void) dims[0] = sizeX; dims[1] = sizeY; pArray = this->pNDArrayPool->alloc(nDims, dims, dataType, 0, NULL); - if (readOutMode == ARRandomTrack) - mMultiTrack.storeTrackAttributes(pArray->pAttributeList); + if (readOutMode == ARRandomTrack) + mMultiTrack.storeTrackAttributes(pArray->pAttributeList); // Read the oldest array // Is there still an image available? status = GetNumberNewImages(&firstImage, &lastImage); @@ -1638,14 +1638,14 @@ void AndorCCD::dataTask(void) ADDriver::setShutter(ADShutterClosed); } - //Now clear main thread flag + // Now clear main thread flag mAcquiringData = 0; setIntegerParam(ADAcquire, 0); //setIntegerParam(ADStatus, 0); //Dont set this as the status thread sets it. /* Call the callbacks to update any changes */ callParamCallbacks(); - } //End of loop + } // End of loop mExited++; this->unlock(); } @@ -1934,7 +1934,7 @@ done: } -//C utility functions to tie in with EPICS +// C utility functions to tie in with EPICS static void andorStatusTaskC(void *drvPvt) {