Skip to content

Commit

Permalink
Changes for UTAG compatibility with base 7.0.5 and earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
zioven authored and jerzyjamroz committed Jan 4, 2024
1 parent d6cdcbf commit 04cb57f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions evrApp/src/devEvrEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,22 +284,22 @@ epicsExportAddress(dset,devEVEventEVR);

}


/*
* Timestamping with UTAG extension
* Date: 5.12.2023
* Authors: Joao Paulo Martins <[email protected]>
* Jerzy Jamroz <[email protected]>
*/

#ifdef DBR_UTAG
#if EPICS_VERSION >= 7

#include <int64outRecord.h>

static long process_int64out(int64outRecord *prec)
{
priv *p = static_cast<priv *>(prec->dpvt);
long ret = 0;
#ifdef DBR_UTAG
priv *p = static_cast<priv *>(prec->dpvt);
try
{

Expand All @@ -325,6 +325,10 @@ static long process_int64out(int64outRecord *prec)
recGblRecordError(S_db_noMemory, (void *)prec, e.what());
ret = S_db_noMemory;
}
#else
recGblRecordError(S_db_noSupport, (void *)prec, "UTAG not supported in EPCIS base prior to 7.0.6");
ret = S_db_noSupport;
#endif
return ret;
}

Expand Down

0 comments on commit 04cb57f

Please sign in to comment.