|
|
@@ -111,14 +111,8 @@ bool CBoxAlgorithmTactiloController::process() |
|
|
|
{ |
|
|
|
m_currTactiloID = StimulationID-m_RowBase; |
|
|
|
} |
|
|
|
if(StimulationID == OVTK_StimulationId_VisualStimulationStart) |
|
|
|
if(StimulationID == OVTK_StimulationId_VisualStimulationStart || StimulationID == OVTK_StimulationId_VisualStimulationStop) |
|
|
|
{ |
|
|
|
this->getLogManager() << LogLevel_Debug << "Tactilo Nr. " << m_currTactiloNr << " ON\n"; |
|
|
|
boost::asio::async_write(m_Port, boost::asio::buffer(std::to_string(m_currTactiloID), 1), boost::bind(&CBoxAlgorithmTactiloController::handler, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); |
|
|
|
} |
|
|
|
if(StimulationID == OVTK_StimulationId_VisualStimulationStop) |
|
|
|
{ |
|
|
|
this->getLogManager() << LogLevel_Debug << "Tactilo Nr. " << m_currTactiloNr << " OFF\n"; |
|
|
|
boost::asio::async_write(m_Port, boost::asio::buffer(std::to_string(m_currTactiloID), 1), boost::bind(&CBoxAlgorithmTactiloController::handler, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred)); |
|
|
|
} |
|
|
|
} |