Skip to content
Snippets Groups Projects
Commit a5580661 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

put all app->cs properties into error state initially

this will be cleared once the initial value has been received
parent e37027de
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,11 @@ namespace ChimeraTK {
<< ". Try selecting a different DOOCS type in the mappng XML file, e.g. a D_spectrum!";
throw ChimeraTK::logic_error(s.str());
}
// put variable into error state, until a valid value has been received
if(!_processArray->isWriteable()) {
this->d_error(stale_data);
}
}
/**
......
......@@ -123,6 +123,11 @@ namespace ChimeraTK {
updater.addVariable(ChimeraTK::ScalarRegisterAccessor<T>(processScalar), eqFct,
std::bind(&DoocsProcessScalar<T, DOOCS_T>::updateDoocsBuffer, this, processScalar->getId()));
_consistencyGroup.add(processScalar);
// put variable into error state, until a valid value has been received
if(!_processScalar->isWriteable()) {
this->d_error(stale_data);
}
}
}
......@@ -133,6 +138,11 @@ namespace ChimeraTK {
updater.addVariable(ChimeraTK::ScalarRegisterAccessor<T>(processScalar), eqFct,
std::bind(&DoocsProcessScalar<T, DOOCS_T>::updateDoocsBuffer, this, processScalar->getId()));
_consistencyGroup.add(processScalar);
// put variable into error state, until a valid value has been received
if(!_processScalar->isWriteable()) {
this->d_error(stale_data);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment