Skip to content

Commit

Permalink
STY: apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Aug 3, 2023
1 parent a53b985 commit 9749c6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ek9000App/src/devEK9000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1297,39 +1297,39 @@ static long ek9k_confli_read_record(void* prec) {
{
uint16_t buf = 0;
err = dpvt->param.ek9k->doCoEIO(0, dpvt->param.pterm->m_terminalIndex, dpvt->param.index, 1, &buf,
dpvt->param.subindex);
dpvt->param.subindex);
precord->val = static_cast<epicsInt64>(buf);
break;
}
case ek9k_coe_param_t::COE_TYPE_INT8:
{
uint16_t buf = 0;
err = dpvt->param.ek9k->doCoEIO(0, dpvt->param.pterm->m_terminalIndex, dpvt->param.index, 1, &buf,
dpvt->param.subindex);
dpvt->param.subindex);
precord->val = static_cast<epicsInt64>(buf);
break;
}
case ek9k_coe_param_t::COE_TYPE_INT16:
{
uint16_t buf = 0;
err = dpvt->param.ek9k->doCoEIO(0, dpvt->param.pterm->m_terminalIndex, dpvt->param.index, 1, &buf,
dpvt->param.subindex);
dpvt->param.subindex);
precord->val = static_cast<epicsInt64>(buf);
break;
}
case ek9k_coe_param_t::COE_TYPE_INT32:
{
uint32_t buf = 0;
err = dpvt->param.ek9k->doCoEIO(0, dpvt->param.pterm->m_terminalIndex, dpvt->param.index, 2,
reinterpret_cast<uint16_t*>(&buf), dpvt->param.subindex);
reinterpret_cast<uint16_t*>(&buf), dpvt->param.subindex);
precord->val = static_cast<epicsInt64>(buf);
break;
}
case ek9k_coe_param_t::COE_TYPE_INT64:
{
uint64_t buf = 0;
err = dpvt->param.ek9k->doCoEIO(0, dpvt->param.pterm->m_terminalIndex, dpvt->param.index, 4,
reinterpret_cast<uint16_t*>(&buf), dpvt->param.subindex);
reinterpret_cast<uint16_t*>(&buf), dpvt->param.subindex);
precord->val = static_cast<epicsInt64>(buf);
break;
}
Expand Down

0 comments on commit 9749c6c

Please sign in to comment.