Skip to content

Commit

Permalink
Merge Xiaoqiang Wang's fix_caProvider_enum_put PR
Browse files Browse the repository at this point in the history
  • Loading branch information
anjohnson committed Feb 22, 2022
2 parents c63d073 + 9544171 commit b1b6e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ca/dbdToPv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ Status DbdToPv::putToDBD(
char *ca_stringBuffer(0);
dbr_char_t bvalue(0);
dbr_short_t svalue(0);
dbr_enum_t evalue(0);
dbr_long_t lvalue(0);
dbr_float_t fvalue(0);
dbr_double_t dvalue(0);
Expand Down Expand Up @@ -944,8 +945,7 @@ Status DbdToPv::putToDBD(
case DBR_ENUM:
{
GET_SUBFIELD_WITH_ERROR_CHECK(PVInt, pvValue, pvStructure, "value.index", "DbdToPv::putToDBD logic error");
dbr_enum_t indexvalue = pvValue->get();
pValue = &indexvalue;
pValue = put_DBRScalar<dbr_enum_t,PVUShort>(&evalue,pvValue);
break;
}
case DBR_STRING:
Expand Down

0 comments on commit b1b6e77

Please sign in to comment.