Commit 05bf9852 authored by in13's avatar in13

Add timed out on clear method

parent 65c99837
......@@ -361,7 +361,11 @@ void DetectorController::synchronizeRead() {
void DetectorController::erase() {
commandProgression = 0;
if (m_UseDriver == true) {
m_Driver.execute(DetectorCommon::CLEAR_COMMAND, true);
m_Driver.setTimeout(DetectorCommon::CLEAR_COMMAND, 60);
try {
m_Driver.execute(DetectorCommon::CLEAR_COMMAND, true);
} catch (TimeOutOccured&) {
}
}
commandProgression = 100;
}
......@@ -373,7 +377,11 @@ void DetectorController::writeMask() {
commandProgression = 0;
if (m_UseDriver == true) {
if (m_MaskChanged == true) {
m_Driver.execute(DetectorCommon::REGROUP_COMMAND, true);
m_Driver.setTimeout(DetectorCommon::REGROUP_COMMAND, 60);
try {
m_Driver.execute(DetectorCommon::REGROUP_COMMAND, true);
} catch (TimeOutOccured&) {
}
m_MaskChanged = false;
} else {
// cout << getName() <<" DetectorController::writeMask don't write mask " << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment