Browse Source

„src/TactiloController/ovpCBoxAlgorithmTactiloController.cpp“ ändern

master
Tobias Baumann 1 year ago
parent
commit
5064a3a92a
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      src/TactiloController/ovpCBoxAlgorithmTactiloController.cpp

+ 1
- 7
src/TactiloController/ovpCBoxAlgorithmTactiloController.cpp View File

{ {
m_currTactiloID = StimulationID-m_RowBase; 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)); 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));
} }
} }

Loading…
Cancel
Save