Skip to content

Commit

Permalink
feat: ErrLog added for "out of bonds" TS scenario.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzyjamroz committed Nov 20, 2023
1 parent 40ccdaa commit 8e36d67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions evrMrmApp/src/drvem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,10 @@ EVRMRM::convertTS(epicsTimeStamp* ts)

// out of bounds
if(int(ts->nsec-1000000000u)>=evrMrmTimeNSOverflowThreshold) {
errlogPrintf("TS out of bounds %08x %08x oflow %d evrMrmTimeNSOverflowThreshold %u diff %d\n",
(unsigned)ts->secPastEpoch, (unsigned)ts->nsec,
int(ts->nsec-1000000000u), evrMrmTimeNSOverflowThreshold,
int(ts->nsec-1000000000u)-evrMrmTimeNSOverflowThreshold);
timestampValid=0;
lastInvalidTimestamp=ts->secPastEpoch;
scanIoRequest(timestampValidChange);
Expand Down

0 comments on commit 8e36d67

Please sign in to comment.