Commit 31643200 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix inverted logic operator

parent eee17635
......@@ -153,7 +153,7 @@ CanDriver_cobsTcp::CanDriver_cobsTcp (QObject * parent)
bool CanDriver_cobsTcp::init (const QVariantMap & options) {
bool ret = false;
if (m_socket->state () != QTcpSocket::UnconnectedState) {
if (m_socket->state () == QTcpSocket::UnconnectedState) {
const bool serv = options.value (SERV, false).toBool ();
const bool loop = options.value (LOOPBACK, false).toBool ();
const bool flush = options.value (FORCE_FLUSH, false).toBool ();
......
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