diff --git a/src/dev/apsDev/devApsEr.c b/src/dev/apsDev/devApsEr.c index d7713b69c..af5c22826 100644 --- a/src/dev/apsDev/devApsEr.c +++ b/src/dev/apsDev/devApsEr.c @@ -602,8 +602,11 @@ STATIC long ErEpicsEventInit(struct eventRecord *pRec) ******************************************************************************/ STATIC long ErEpicsEventGetIoScan(int cmd, struct eventRecord *pRec, IOSCANPVT *pPvt) { - *pPvt = *((IOSCANPVT*)(pRec->dpvt)); - return(0); + if (pRec->dpvt) { + *pPvt = *((IOSCANPVT*)(pRec->dpvt)); + return(0); + } + return TRUE; /* No hardware */ } ErDsetStruct devErEpicsEvent={5, NULL, NULL, ErEpicsEventInit, ErEpicsEventGetIoScan, NULL};