From 8e36d670a9a143b93a02cf1c822636eccd74bceb Mon Sep 17 00:00:00 2001 From: Jerzy Jamroz Date: Mon, 20 Nov 2023 12:53:19 +0100 Subject: [PATCH] feat: ErrLog added for "out of bonds" TS scenario. --- evrMrmApp/src/drvem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evrMrmApp/src/drvem.cpp b/evrMrmApp/src/drvem.cpp index 135f0b3b..44fe9022 100644 --- a/evrMrmApp/src/drvem.cpp +++ b/evrMrmApp/src/drvem.cpp @@ -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);