-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for UTAG compatibility with base 7.0.5 and earlier
- Loading branch information
1 parent
d6cdcbf
commit 04cb57f
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
{ | ||
|
||
|
@@ -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; | ||
} | ||
|
||
|