Skip to content

Commit

Permalink
Set INVALID severity if record cannot be processed.
Browse files Browse the repository at this point in the history
Before, the severity was only set when the process routine was called
and failed. It was not set, when the routine could not be called because
the device support had not been initialized properly.
  • Loading branch information
smarsching committed Jan 24, 2019
1 parent 78bb468 commit 4daf0ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrfApp/mrfEpicsSrc/mrfRecordDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ long processRecord(void *recordVoid) {
} catch (std::exception &e) {
errorExtendedPrintf("%s Record processing failed: %s", record->name,
e.what());
recGblSetSevr(record, SOFT_ALARM, INVALID_ALARM);
return -1;
} catch (...) {
errorExtendedPrintf("%s Record processing failed: Unknown error.",
record->name);
recGblSetSevr(record, SOFT_ALARM, INVALID_ALARM);
return -1;
}
return 0;
Expand Down

0 comments on commit 4daf0ff

Please sign in to comment.