diff --git a/src/comm/XbeeLink.cpp b/src/comm/XbeeLink.cpp index e730b7ec2859b14d64dd5c0d9f1f3d6de8e8aca9..1b3a237e6e23e0a170cd7b7e1fe2a2789d404a6d 100644 --- a/src/comm/XbeeLink.cpp +++ b/src/comm/XbeeLink.cpp @@ -168,7 +168,7 @@ bool XbeeLink::hardwareConnect() bool XbeeLink::_connect(void) { - if (this->isRunning()) this->disconnect(); + if (this->isRunning()) _disconnect(); this->start(LowPriority); return true; } @@ -205,7 +205,7 @@ void XbeeLink::writeBytes(const char *bytes, qint64 length) // TO DO: delete th } else { - this->disconnect(); + _disconnect(); emit communicationError(this->getName(), tr("Could not send data - link %1 is disconnected!").arg(this->getName())); } }