Browse Source

Dateien hochladen nach „src/TactiloController“

master
Tobias Baumann 2 years ago
parent
commit
740de6ee95
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/TactiloController/ovpCBoxAlgorithmTactiloController.cpp

+ 5
- 2
src/TactiloController/ovpCBoxAlgorithmTactiloController.cpp View File

@@ -40,6 +40,7 @@ bool CBoxAlgorithmTactiloController::initialize()
if(m_Port.is_open())
{
this->getLogManager() << LogLevel_Info << "Connected to Serial Port: " << m_PortName << "\n";
m_Port.write_some(boost::asio::buffer("0"));
}
return true;
@@ -49,11 +50,13 @@ bool CBoxAlgorithmTactiloController::initialize()

bool CBoxAlgorithmTactiloController::uninitialize()
{
this->getLogManager() << LogLevel_Info << "Close Serial Port: " << m_PortName << "\n";
m_Port.write_some(boost::asio::buffer("0"));
m_Port.close();

m_StimDecoder.uninitialize();
m_StimEncoder.uninitialize();
m_Port.close();

return true;
}


Loading…
Cancel
Save