Commit 2994e856 authored by PAPADOPOULO Theodore's avatar PAPADOPOULO Theodore

Fix compilation error. error is a class with a conversion to bool not a pointer..

parent cded6069
......@@ -96,7 +96,7 @@ public:
void stimulusHandler(const system::error_code& error)
{
if (error == error::eof) { return; } // Connection closed cleanly by peer.
if (error != nullptr) { throw system::system_error(error); } // Some other error.
if (error) { throw system::system_error(error); } // Some other error.
// std::cout.write(stimulusBuffer.data(), strlen(stimulusBuffer.data()));
std::cout << "(" << m_signalBytesRead << " bytes of signal read), stimulus: " << &m_stimulusStream;
......@@ -109,7 +109,7 @@ public:
void signalHeaderHandler(const system::error_code& error)
{
if (error == error::eof) { return; } // Connection closed cleanly by peer.
if (error != nullptr) { throw system::system_error(error); } // Some other error.
if (error) { throw system::system_error(error); } // Some other error.
std::cout << "Received signal header\n";
......@@ -148,7 +148,7 @@ public:
void signalHandler(const system::error_code& error)
{
if (error == error::eof) { return; } // Connection closed cleanly by peer.
if (error != nullptr) { throw system::system_error(error); } // Some other error.
if (error) { throw system::system_error(error); } // Some other error.
// signalBuffer will now contain bufferSize/sizeof(float64) amount of samples in float64s. Here we just discard the data.
const char* buf = m_signalBuffer.data();
......
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