Skip to content

Commit

Permalink
drop display.format
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Feb 20, 2019
1 parent 37cb765 commit 5b14bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/ca/dbdToPv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,10 @@ Status DbdToPv::getFromDBD(
if(caDisplay.format!=format) {
caDisplay.format = format;
PVStringPtr pvString = pvDisplay->getSubField<PVString>("format");
pvString->put(format);
bitSet->set(pvString->getFieldOffset());
if(pvString) {
pvString->put(format);
bitSet->set(pvString->getFieldOffset());
}
}
}
if(valueAlarmRequested) {
Expand Down
1 change: 0 additions & 1 deletion testApp/remote/testServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,6 @@ class MockChannel :
displayStructure->getSubField<PVDouble>("limitLow")->put(-1.0);
displayStructure->getSubField<PVDouble>("limitHigh")->put(1.0);
displayStructure->getSubField<PVString>("description")->put("Simulated ADC");
displayStructure->getSubField<PVString>("format")->put("%f");
displayStructure->getSubField<PVString>("units")->put("V");
}
else if (m_name.find("testRPC") == 0 || m_name == "testNTTable" || m_name == "testNTMatrix")
Expand Down

0 comments on commit 5b14bbe

Please sign in to comment.