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

fix repeatedly reporting device-not-opened state as data fault

parent be85b286
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,11 @@ namespace ChimeraTK {
retry:
try {
if(!_deviceModule.device.isOpened()) {
auto version = externalTrigger->getVersionNumber();
//boost::fusion::for_each(fanOutMap.table, SendDataToConsumers(version, DataValidity::faulty));
if(lastValidity == DataValidity::ok) {
lastValidity = DataValidity::faulty;
auto version = externalTrigger->getVersionNumber();
boost::fusion::for_each(fanOutMap.table, SendDataToConsumers(version, DataValidity::faulty));
}
Application::getInstance().testableModeUnlock("waitForDeviceOpen");
boost::this_thread::sleep(boost::posix_time::millisec(DeviceOpenTimeout));
Application::getInstance().testableModeLock("waitForDeviceOpen");
......
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