|
|
@@ -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; |
|
|
|
} |
|
|
|
|