Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions acsMotionApp/src/SPiiPlusAuxDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ static void SPiiPlusAuxIOThreadC(void *pPvt)

static void shutdownCallback(void *pPvt)
{
SPiiPlusController *pC = static_cast<SPiiPlusController *>(pPvt);
SPiiPlusAuxIO *pAux = static_cast<SPiiPlusAuxIO *>(pPvt);

pC->lock();
pC->shuttingDown_ = 1;
pC->unlock();
pAux->lock();
pAux->shuttingDown_ = 1;
pAux->unlock();
}

SPiiPlusAuxIO::SPiiPlusAuxIO(const char *ACSAuxPortName, const char* asynPortName, int numChannels, double pollPeriod)
Expand All @@ -52,7 +52,7 @@ SPiiPlusAuxIO::SPiiPlusAuxIO(const char *ACSAuxPortName, const char* asynPortNam
pComm_ = new SPiiPlusComm(ACSCommPortName, asynPortName, numChannels);

/* Set an EPICS exit handler that will shut down polling before asyn kills the IP sockets */
epicsAtExit(shutdownCallback, pC_);
epicsAtExit(shutdownCallback, this);

/*
* MP4U controllers have significantly larger arrays for the AIN, AOUT, IN and OUT commands than the controller
Expand Down
1 change: 0 additions & 1 deletion acsMotionApp/src/SPiiPlusAuxDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class epicsShareClass SPiiPlusAuxIO : public asynPortDriver {
#define LAST_SPIIPLUS_AUXIO_PARAM analogOutput_

private:
SPiiPlusController *pC_;
double pollPeriod_;
int forceCallback_;
double ain_[MAX_SIGNALS];
Expand Down
Loading